improving internal consistency validation
This commit is contained in:
parent
24559473d6
commit
03fa5d716b
|
@ -93,6 +93,7 @@ void writeToFlashNow(void) {
|
|||
} else {
|
||||
scheduleMsg(logger, "Flashing failed");
|
||||
}
|
||||
assertEngineReference(PASS_ENGINE_PARAMETER_F);
|
||||
maxLockTime = 0;
|
||||
}
|
||||
|
||||
|
@ -127,7 +128,7 @@ static persisted_configuration_state_e doReadConfiguration(flashaddr_t address,
|
|||
*/
|
||||
persisted_configuration_state_e readConfiguration(Logging * logger) {
|
||||
efiAssert(getRemainingStack(chThdSelf()) > 256, "read f", PC_ERROR);
|
||||
|
||||
assertEngineReference(PASS_ENGINE_PARAMETER_F);
|
||||
persisted_configuration_state_e result = doReadConfiguration(FLASH_ADDR, logger);
|
||||
if (result != PC_OK) {
|
||||
printMsg(logger, "Reading second configuration copy");
|
||||
|
|
|
@ -151,6 +151,7 @@ static void scheduleReboot(void) {
|
|||
|
||||
void runRusEfi(void) {
|
||||
efiAssertVoid(getRemainingStack(chThdSelf()) > 512, "init s");
|
||||
assertEngineReference(PASS_ENGINE_PARAMETER_F);
|
||||
initIntermediateLoggingBuffer();
|
||||
initErrorHandling();
|
||||
|
||||
|
@ -161,7 +162,7 @@ void runRusEfi(void) {
|
|||
* while reading configuration
|
||||
*/
|
||||
initTriggerDecoderLogger(&sharedLogger);
|
||||
#endif
|
||||
#endif /* EFI_SHAFT_POSITION_INPUT */
|
||||
|
||||
/**
|
||||
* we need to initialize table objects before default configuration can set values
|
||||
|
|
Loading…
Reference in New Issue