Store TLE presistent #789

Merged
meggert merged 17 commits from persistent-tle-store into dev-7.5.0 2023-12-01 13:04:57 +01:00
Showing only changes of commit 1d51bfba3d - Show all commits

View File

@ -1045,9 +1045,9 @@ ReturnValue_t AcsController::writeTleToFs(const uint8_t *tle) {
// Clear existing TLE from file
std::ofstream tleFile(path.c_str(), std::ofstream::out | std::ofstream::trunc);
if (tleFile.is_open()) {
tleFile.write(static_cast<char *>(tle), 69);
tleFile.write(reinterpret_cast<const char *>(tle), 69);
tleFile << "\n";
tleFile.write(static_cast<char *>(tle + 69), 69);
tleFile.write(reinterpret_cast<const char *>(tle + 69), 69);
} else {
// return error
}