mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
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:
14
lib/sector.cc
Normal file
14
lib/sector.cc
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user