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