Skip to content

Commit

Permalink
initial test
Browse files Browse the repository at this point in the history
  • Loading branch information
dynfer committed Jan 4, 2025
1 parent 9507696 commit cc89b3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions firmware/controllers/gauges/malfunction_indicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,16 @@ class MILController : public PeriodicController<UTILITY_THREAD_STACK_SIZE> {
static error_codes_set_s localErrorCopy;
// todo: why do I not see this on a real vehicle? is this whole blinking logic not used?
getErrorCodes(&localErrorCopy);
/*
for (int p = 0; p < localErrorCopy.count; p++) {
// Calculate how many digits in this integer and display error code from start to end
int code = (int)localErrorCopy.error_codes[p];
DisplayErrorCode(DigitLength(code), code);
}
*/
if (localErrorCopy.count > 0) enginePins.checkEnginePin.setValue(1);

else enginePins.checkEnginePin.setValue(0);
#endif // EFI_SHAFT_POSITION_INPUT
}
};
Expand Down

0 comments on commit cc89b3c

Please sign in to comment.