diff --git a/mission/tmtc/TmStore.cpp b/mission/tmtc/TmStore.cpp index 18a32cb7..e5adc4a8 100644 --- a/mission/tmtc/TmStore.cpp +++ b/mission/tmtc/TmStore.cpp @@ -145,6 +145,8 @@ void TmStore::assignAndOrCreateMostRecentFile() { tod.year, tod.month, tod.day, tod.hour, tod.minute, tod.second); path newPath(std::string(reinterpret_cast(fileBuf.data()), currentIdx)); std::ofstream of(newPath, std::ios::binary); + mostRecentFile = newPath; + mostRecentTv = currentTv; } }