@@ -129,7 +129,7 @@ int AppTask::StartAppTask()
129
129
// Identify take action
130
130
void identify_TakeAction (void )
131
131
{
132
- #if (LED_ENABLE == 1)
132
+ #if (LED_ENABLE == 1)
133
133
LED_setOn (sAppGreenHandle , LED_BRIGHTNESS_MAX);
134
134
LED_startBlinking (sAppGreenHandle , 1000 , LED_BLINK_FOREVER);
135
135
#endif // LED_ENABLE
@@ -138,7 +138,7 @@ void identify_TakeAction(void)
138
138
// Identify stop action
139
139
void identify_StopAction (void )
140
140
{
141
- #if (LED_ENABLE == 1)
141
+ #if (LED_ENABLE == 1)
142
142
LED_stopBlinking (sAppGreenHandle );
143
143
LED_setOff (sAppGreenHandle );
144
144
#endif // LED_ENABLE
@@ -275,7 +275,7 @@ void AppTask::ActionInitiated(PumpManager::Action_t aAction, int32_t aActor)
275
275
PLAT_LOG (" Stop initiated" );
276
276
; // TODO
277
277
}
278
- #if (LED_ENABLE == 1)
278
+ #if (LED_ENABLE == 1)
279
279
LED_setOn (sAppGreenHandle , LED_BRIGHTNESS_MAX);
280
280
LED_startBlinking (sAppGreenHandle , 50 /* ms */ , LED_BLINK_FOREVER);
281
281
LED_setOn (sAppRedHandle , LED_BRIGHTNESS_MAX);
@@ -291,7 +291,7 @@ void AppTask::ActionCompleted(PumpManager::Action_t aAction, int32_t aActor)
291
291
if (aAction == PumpManager::START_ACTION)
292
292
{
293
293
PLAT_LOG (" Pump start completed" );
294
- #if (LED_ENABLE == 1)
294
+ #if (LED_ENABLE == 1)
295
295
LED_stopBlinking (sAppGreenHandle );
296
296
LED_setOn (sAppGreenHandle , LED_BRIGHTNESS_MAX);
297
297
LED_stopBlinking (sAppRedHandle );
@@ -301,7 +301,7 @@ void AppTask::ActionCompleted(PumpManager::Action_t aAction, int32_t aActor)
301
301
else if (aAction == PumpManager::STOP_ACTION)
302
302
{
303
303
PLAT_LOG (" Pump stop completed" );
304
- #if (LED_ENABLE == 1)
304
+ #if (LED_ENABLE == 1)
305
305
LED_stopBlinking (sAppGreenHandle );
306
306
LED_setOff (sAppGreenHandle );
307
307
LED_stopBlinking (sAppRedHandle );
@@ -367,7 +367,7 @@ void AppTask::DispatchEvent(AppEvent * aEvent)
367
367
break ;
368
368
369
369
case AppEvent::kEventType_IdentifyStop :
370
- #if (LED_ENABLE == 1)
370
+ #if (LED_ENABLE == 1)
371
371
LED_stopBlinking (sAppGreenHandle );
372
372
373
373
if (!PumpMgr ().IsStopped ())
@@ -440,7 +440,7 @@ void AppTask::TriggerIdentifyEffectHandler(::Identify * identify)
440
440
}
441
441
}
442
442
443
- #if (BUTTON_ENABLE == 1)
443
+ #if (BUTTON_ENABLE == 1)
444
444
void AppTask::ButtonLeftEventHandler (Button_Handle handle, Button_EventMask events)
445
445
{
446
446
AppEvent event;
@@ -484,7 +484,7 @@ void AppTask::ButtonRightEventHandler(Button_Handle handle, Button_EventMask eve
484
484
485
485
void AppTask::uiInit (void )
486
486
{
487
- #if (LED_ENABLE == 1)
487
+ #if (LED_ENABLE == 1)
488
488
489
489
LED_Params ledParams;
490
490
@@ -501,7 +501,7 @@ void AppTask::uiInit(void)
501
501
LED_setOff (sAppGreenHandle );
502
502
#endif // LED ENABLE
503
503
504
- #if (BUTTON_ENABLE == 1)
504
+ #if (BUTTON_ENABLE == 1)
505
505
Button_Params buttonParams;
506
506
507
507
// Initialize buttons
0 commit comments