Add the missing file which was causing build failures. Adjust the constants so

that we can fit a complete track into a physical sector (which is truncated
slightly due to the index gap).
This commit is contained in:
David Given
2019-01-10 22:52:14 +01:00
parent 9ee230e179
commit ed8381c74c
3 changed files with 21 additions and 5 deletions

14
lib/sector.cc Normal file
View File

@@ -0,0 +1,14 @@
#include "globals.h"
#include "sector.h"
#include "fmt/format.h"
const std::string Sector::statusToString(Status status)
{
switch (status)
{
case Status::OK: return "OK";
case Status::BAD_CHECKSUM: return "bad checksum";
case Status::MISSING: return "sector not found";
default: return fmt::format("unknown error {}", status);
}
}