improving internal consistency validation

This commit is contained in:
rusefi 2017-03-19 18:04:59 -04:00
parent 24559473d6
commit 03fa5d716b
2 changed files with 4 additions and 2 deletions

View File

@ -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");

View File

@ -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