i wonder if this even works
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
This commit is contained in:
parent
c493273a21
commit
6f1f92c9d1
@ -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
2
tmtc
@ -1 +1 @@
|
||||
Subproject commit a55572db2890ef9e8276c95ba8ebfb2d74a88f7c
|
||||
Subproject commit 30cf47365fec68a4b78395de03ecb2ae95af4e7e
|
Loading…
x
Reference in New Issue
Block a user