Store TLE presistent #789
@ -1045,9 +1045,9 @@ ReturnValue_t AcsController::writeTleToFs(const uint8_t *tle) {
|
|||||||
// Clear existing TLE from file
|
// Clear existing TLE from file
|
||||||
std::ofstream tleFile(path.c_str(), std::ofstream::out | std::ofstream::trunc);
|
std::ofstream tleFile(path.c_str(), std::ofstream::out | std::ofstream::trunc);
|
||||||
if (tleFile.is_open()) {
|
if (tleFile.is_open()) {
|
||||||
tleFile.write(static_cast<char *>(tle), 69);
|
tleFile.write(reinterpret_cast<const char *>(tle), 69);
|
||||||
tleFile << "\n";
|
tleFile << "\n";
|
||||||
tleFile.write(static_cast<char *>(tle + 69), 69);
|
tleFile.write(reinterpret_cast<const char *>(tle + 69), 69);
|
||||||
} else {
|
} else {
|
||||||
// return error
|
// return error
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user