rename task to LED blinking

This commit is contained in:
Matthew Kennedy 2024-06-27 12:39:47 -07:00
parent 030fbf3942
commit 7a9bfc763c
2 changed files with 5 additions and 4 deletions

View File

@ -98,7 +98,8 @@ struct AirmassModelBase;
class IEtbController; class IEtbController;
struct EngineStateBlinkingTask : public EngineModule { class LedBlinkingTask : public EngineModule {
public:
void onSlowCallback() override; void onSlowCallback() override;
}; };
@ -172,7 +173,7 @@ public:
#if EFI_BOOST_CONTROL #if EFI_BOOST_CONTROL
BoostController, BoostController,
#endif // EFI_BOOST_CONTROL #endif // EFI_BOOST_CONTROL
EngineStateBlinkingTask, LedBlinkingTask,
EngineModule // dummy placeholder so the previous entries can all have commas EngineModule // dummy placeholder so the previous entries can all have commas
> engineModules; > engineModules;

View File

@ -369,7 +369,7 @@ static void initConfigActions() {
} }
#endif /* EFI_UNIT_TEST */ #endif /* EFI_UNIT_TEST */
void EngineStateBlinkingTask::onSlowCallback() { void LedBlinkingTask::onSlowCallback() {
#if EFI_SHAFT_POSITION_INPUT #if EFI_SHAFT_POSITION_INPUT
bool is_running = engine->rpmCalculator.isRunning(); bool is_running = engine->rpmCalculator.isRunning();
#else #else
@ -380,7 +380,7 @@ void EngineStateBlinkingTask::onSlowCallback() {
// blink in running mode // blink in running mode
enginePins.runningLedPin.toggle(); enginePins.runningLedPin.toggle();
} else { } else {
int is_cranking = engine->rpmCalculator.isCranking(); bool is_cranking = engine->rpmCalculator.isCranking();
enginePins.runningLedPin.setValue(is_cranking); enginePins.runningLedPin.setValue(is_cranking);
} }
} }