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

This commit is contained in:
Robin Müller 2022-12-12 16:04:38 +01:00
parent c493273a21
commit 6f1f92c9d1
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
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

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