event fix for file corruption
Some checks are pending
EIVE/eive-obsw/pipeline/head Build queued...
EIVE/eive-obsw/pipeline/pr-main This commit looks good

This commit is contained in:
Robin Müller 2023-08-17 10:27:33 +02:00
parent b11461c2f7
commit e148e95471
Signed by: muellerr
GPG Key ID: A649FB78196E3849
2 changed files with 2 additions and 0 deletions

View File

@ -111,6 +111,7 @@ void ObjectFactory::produce(void* args) {
new CoreController(objects::CORE_CONTROLLER, enableHkSets); new CoreController(objects::CORE_CONTROLLER, enableHkSets);
auto* stackHandler = new Stack5VHandler(*pwrSwitcher); auto* stackHandler = new Stack5VHandler(*pwrSwitcher);
static_cast<void>(stackHandler);
// Initialize chip select to avoid SPI bus issues. // Initialize chip select to avoid SPI bus issues.
createRadSensorChipSelect(gpioComIF); createRadSensorChipSelect(gpioComIF);

View File

@ -320,6 +320,7 @@ ReturnValue_t PersistentTmStore::loadNextDumpFile() {
} }
// File will change, reset this field for correct state-keeping. // File will change, reset this field for correct state-keeping.
dumpParams.currentSameFileIdx = std::nullopt; dumpParams.currentSameFileIdx = std::nullopt;
dumpParams.currentFileUnixStamp = dumpParams.dumpIter->epoch;
// Increment iterator for next cycle. // Increment iterator for next cycle.
dumpParams.dumpIter++; dumpParams.dumpIter++;
}; };