mirror of https://github.com/rusefi/rusefi.git
only:minor progress
This commit is contained in:
parent
ab801bceb3
commit
da34743332
|
@ -50,8 +50,8 @@ int getRusEfiVersion(void);
|
||||||
#define efiAssert(code, condition, message, result) { if (!(condition)) { firmwareError(code, message); return result; } }
|
#define efiAssert(code, condition, message, result) { if (!(condition)) { firmwareError(code, message); return result; } }
|
||||||
#define efiAssertVoid(code, condition, message) { if (!(condition)) { firmwareError(code, message); return; } }
|
#define efiAssertVoid(code, condition, message) { if (!(condition)) { firmwareError(code, message); return; } }
|
||||||
#else /* EFI_ENABLE_ASSERTS */
|
#else /* EFI_ENABLE_ASSERTS */
|
||||||
#define efiAssert(code, condition, message, result) { }
|
#define efiAssert(code, condition, message, result) { UNUSED(code);UNUSED(condition);UNUSED(message);UNUSED(result); }
|
||||||
#define efiAssertVoid(code, condition, message) { UNUSED(condition);}
|
#define efiAssertVoid(code, condition, message) { UNUSED(condition);UNUSED(message);}
|
||||||
#endif /* EFI_ENABLE_ASSERTS */
|
#endif /* EFI_ENABLE_ASSERTS */
|
||||||
|
|
||||||
#define criticalAssert(condition, message, result) efiAssert(ObdCode::OBD_PCM_Processor_Fault, condition, message, result)
|
#define criticalAssert(condition, message, result) efiAssert(ObdCode::OBD_PCM_Processor_Fault, condition, message, result)
|
||||||
|
|
|
@ -39,8 +39,6 @@ static bool isTimerPending = false;
|
||||||
static int timerCallbackCounter = 0;
|
static int timerCallbackCounter = 0;
|
||||||
static int timerRestartCounter = 0;
|
static int timerRestartCounter = 0;
|
||||||
|
|
||||||
static const char * msg;
|
|
||||||
|
|
||||||
static int timerFreezeCounter = 0;
|
static int timerFreezeCounter = 0;
|
||||||
static int setHwTimerCounter = 0;
|
static int setHwTimerCounter = 0;
|
||||||
static bool hwStarted = false;
|
static bool hwStarted = false;
|
||||||
|
@ -112,7 +110,7 @@ class MicrosecondTimerWatchdogController : public PeriodicTimerController {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
msg = isTimerPending ? "No_cb too long" : "Timer not awhile";
|
const char* msg = isTimerPending ? "No_cb too long" : "Timer not awhile";
|
||||||
// 2 seconds of inactivity would not look right
|
// 2 seconds of inactivity would not look right
|
||||||
efiAssertVoid(ObdCode::CUSTOM_TIMER_WATCHDOG, nowNt < lastSetTimerTimeNt + 2 * CORE_CLOCK, msg);
|
efiAssertVoid(ObdCode::CUSTOM_TIMER_WATCHDOG, nowNt < lastSetTimerTimeNt + 2 * CORE_CLOCK, msg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue