fix for failed handling
All checks were successful
EIVE/eive-obsw/pipeline/pr-dev-7.5.0 This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-dev-7.5.0 This commit looks good
This commit is contained in:
parent
d22a2abf64
commit
b86ee21da0
@ -23,6 +23,7 @@ will consitute of a breaking change warranting a new major release:
|
|||||||
the current active SD Card. After a reboot, the TLE will be read from the filesystem.
|
the current active SD Card. After a reboot, the TLE will be read from the filesystem.
|
||||||
A filesystem change via `prefSD` on bootup, can lead to the TLE not being read, even
|
A filesystem change via `prefSD` on bootup, can lead to the TLE not being read, even
|
||||||
though it is there.
|
though it is there.
|
||||||
|
- Added action cmd to read the currently stored TLE.
|
||||||
|
|
||||||
# [v7.4.0] 2023-11-30
|
# [v7.4.0] 2023-11-30
|
||||||
|
|
||||||
|
@ -1084,9 +1084,12 @@ ReturnValue_t AcsController::readTleFromFs(uint8_t *line1, uint8_t *line2) {
|
|||||||
std::memcpy(line2, tleLine2.c_str(), 69);
|
std::memcpy(line2, tleLine2.c_str(), 69);
|
||||||
} else {
|
} else {
|
||||||
triggerEvent(acs::TLE_FILE_READ_FAILED);
|
triggerEvent(acs::TLE_FILE_READ_FAILED);
|
||||||
return returnvalue::FAILED;
|
return READ_FILE_FAILED;
|
||||||
}
|
}
|
||||||
tleFile.close();
|
tleFile.close();
|
||||||
|
} else {
|
||||||
|
triggerEvent(acs::TLE_FILE_READ_FAILED);
|
||||||
|
return READ_FILE_FAILED;
|
||||||
}
|
}
|
||||||
return returnvalue::OK;
|
return returnvalue::OK;
|
||||||
}
|
}
|
||||||
|
@ -104,6 +104,8 @@ class AcsController : public ExtendedControllerBase, public ReceivesParameterMes
|
|||||||
static constexpr ReturnValue_t FILE_DELETION_FAILED = MAKE_RETURN_CODE(0);
|
static constexpr ReturnValue_t FILE_DELETION_FAILED = MAKE_RETURN_CODE(0);
|
||||||
//! [EXPORT] : [COMMENT] Writing the TLE to the file has failed.
|
//! [EXPORT] : [COMMENT] Writing the TLE to the file has failed.
|
||||||
static constexpr ReturnValue_t WRITE_FILE_FAILED = MAKE_RETURN_CODE(1);
|
static constexpr ReturnValue_t WRITE_FILE_FAILED = MAKE_RETURN_CODE(1);
|
||||||
|
//! [EXPORT] : [COMMENT] Reading the TLE to the file has failed.
|
||||||
|
static constexpr ReturnValue_t READ_FILE_FAILED = MAKE_RETURN_CODE(2);
|
||||||
|
|
||||||
ReturnValue_t initialize() override;
|
ReturnValue_t initialize() override;
|
||||||
ReturnValue_t handleCommandMessage(CommandMessage* message) override;
|
ReturnValue_t handleCommandMessage(CommandMessage* message) override;
|
||||||
|
Loading…
Reference in New Issue
Block a user