auto-sync

This commit is contained in:
rusEfi 2015-02-03 12:07:02 -06:00
parent 8facb8491a
commit 3a44f44759
2 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,7 @@ void chDbgPanic3(const char *msg, const char * file, int line) {
/**
* low-level function is used here to reduce stack usage
*/
// todo: extract a macro for this
palWritePad(LED_ERROR_PORT, LED_ERROR_PIN, 1);
turnAllPinsOff();
#if EFI_HD44780_LCD

View File

@ -230,6 +230,8 @@ extern engine_pins_s enginePins;
void firmwareError(const char *errorMsg, ...) {
if (hasFirmwareErrorFlag)
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);
turnAllPinsOff();
hasFirmwareErrorFlag = TRUE;