Persistent TM Store #320

Merged
muellerr merged 109 commits from mueller/pus-15-tm-storage into develop 2023-02-24 19:03:39 +01:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 6f1f92c9d1 - Show all commits

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

@ -1 +1 @@
Subproject commit a55572db2890ef9e8276c95ba8ebfb2d74a88f7c
Subproject commit 30cf47365fec68a4b78395de03ecb2ae95af4e7e