i wonder if this even works
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit

This commit is contained in:
2022-12-12 16:04:38 +01:00
parent c493273a21
commit 6f1f92c9d1
2 changed files with 4 additions and 3 deletions

View File

@ -74,10 +74,11 @@ ReturnValue_t TmStore::storePacket(PusTmReader& reader) {
}
float seconds = 0.0;
char* prefix = nullptr;
// TODO: Scan file timestamp from name somehow. Maybe use scanf or similar?
int count = sscanf(pathStr.c_str(), "%s%4" SCNu32 "-%2" SCNu32 "-%2"
int count = sscanf(pathStr.c_str(), "%s_%4" SCNu32 "-%2" SCNu32 "-%2"
SCNu32 "T%2" SCNu32 ":%2" SCNu32 ":%fZ", prefix, &tod.year, &tod.month, &tod.day,
&tod.hour, &tod.minute, &seconds);
tod.second = std::floor(seconds);
static_cast<void>(count);
}
}
// TODO: Need to find the file of the most recent file.

2
tmtc

Submodule tmtc updated: a55572db28...30cf47365f