auto-sync
This commit is contained in:
parent
dcb50a05b0
commit
7decac2913
|
@ -37,6 +37,7 @@ void chDbgPanic3(const char *msg, const char * file, int line) {
|
||||||
/**
|
/**
|
||||||
* low-level function is used here to reduce stack usage
|
* low-level function is used here to reduce stack usage
|
||||||
*/
|
*/
|
||||||
|
// todo: extract a macro for this
|
||||||
palWritePad(LED_ERROR_PORT, LED_ERROR_PIN, 1);
|
palWritePad(LED_ERROR_PORT, LED_ERROR_PIN, 1);
|
||||||
turnAllPinsOff();
|
turnAllPinsOff();
|
||||||
#if EFI_HD44780_LCD
|
#if EFI_HD44780_LCD
|
||||||
|
|
|
@ -230,6 +230,8 @@ extern engine_pins_s enginePins;
|
||||||
void firmwareError(const char *errorMsg, ...) {
|
void firmwareError(const char *errorMsg, ...) {
|
||||||
if (hasFirmwareErrorFlag)
|
if (hasFirmwareErrorFlag)
|
||||||
return;
|
return;
|
||||||
|
// todo: extract a macro and use the same macro here and in
|
||||||
|
// the other place where we have palWritePad(LED_ERROR_PORT, LED_ERROR_PIN, 1);
|
||||||
enginePins.errorLedPin.setValue(1);
|
enginePins.errorLedPin.setValue(1);
|
||||||
turnAllPinsOff();
|
turnAllPinsOff();
|
||||||
hasFirmwareErrorFlag = TRUE;
|
hasFirmwareErrorFlag = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue