Skip to content

Commit d1afce3

Browse files
restyled-commitsabiradarti
authored andcommitted
Restyled by clang-format
1 parent 44fdaf3 commit d1afce3

File tree

5 files changed

+34
-34
lines changed

5 files changed

+34
-34
lines changed

examples/all-clusters-app/cc13x4_26x4/main/AppTask.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ void AppTask::DispatchEvent(AppEvent * aEvent)
345345
}
346346
}
347347

348-
#if(BUTTON_ENABLE == 1)
348+
#if (BUTTON_ENABLE == 1)
349349
void AppTask::ButtonLeftEventHandler(Button_Handle handle, Button_EventMask events)
350350
{
351351
AppEvent event;
@@ -389,7 +389,7 @@ void AppTask::ButtonRightEventHandler(Button_Handle handle, Button_EventMask eve
389389

390390
void AppTask::uiInit(void)
391391
{
392-
#if(LED_ENABLE == 1)
392+
#if (LED_ENABLE == 1)
393393

394394
LED_Params ledParams;
395395

@@ -406,7 +406,7 @@ void AppTask::uiInit(void)
406406
LED_setOff(sAppGreenHandle);
407407
#endif // LED ENABLE
408408

409-
#if(BUTTON_ENABLE == 1)
409+
#if (BUTTON_ENABLE == 1)
410410
Button_Params buttonParams;
411411

412412
// Initialize buttons

examples/lighting-app/cc13x4_26x4/src/AppTask.cpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ int AppTask::StartAppTask()
144144
// Identify take action
145145
void identify_TakeAction(void)
146146
{
147-
#if(LED_ENABLE == 1)
147+
#if (LED_ENABLE == 1)
148148
LED_setOn(sAppGreenHandle, LED_BRIGHTNESS_MAX);
149149
LED_startBlinking(sAppGreenHandle, 1000, LED_BLINK_FOREVER);
150150
#endif // LED_ENABLE
@@ -153,7 +153,7 @@ void identify_TakeAction(void)
153153
// Identify stop action
154154
void identify_StopAction(void)
155155
{
156-
#if(LED_ENABLE == 1)
156+
#if (LED_ENABLE == 1)
157157
LED_stopBlinking(sAppGreenHandle);
158158
LED_setOff(sAppGreenHandle);
159159
#endif // LED_ENABLE
@@ -478,7 +478,7 @@ void AppTask::TriggerIdentifyEffectHandler(::Identify * identify)
478478
void uiTurnOn(void)
479479
{
480480
PLAT_LOG("Light On initiated");
481-
#if(LED_ENABLE == 1)
481+
#if (LED_ENABLE == 1)
482482
LED_setOn(sAppRedHandle, LED_BRIGHTNESS_MAX);
483483
LED_startBlinking(sAppRedHandle, 110 /* ms */, LED_BLINK_FOREVER);
484484
#endif // LED_ENABLE
@@ -488,7 +488,7 @@ void uiTurnOn(void)
488488
void uiTurnedOn(void)
489489
{
490490
PLAT_LOG("Light On completed");
491-
#if(LED_ENABLE == 1)
491+
#if (LED_ENABLE == 1)
492492
LED_stopBlinking(sAppRedHandle);
493493
LED_setOn(sAppRedHandle, LED_BRIGHTNESS_MAX);
494494
#endif // LED_ENABLE
@@ -498,7 +498,7 @@ void uiTurnedOn(void)
498498
void uiTurnOff(void)
499499
{
500500
PLAT_LOG("Light Off initiated");
501-
#if(LED_ENABLE == 1)
501+
#if (LED_ENABLE == 1)
502502
LED_setOn(sAppRedHandle, LED_BRIGHTNESS_MAX);
503503
LED_startBlinking(sAppRedHandle, 110 /* ms */, LED_BLINK_FOREVER);
504504
#endif // LED_ENABLE
@@ -508,13 +508,13 @@ void uiTurnOff(void)
508508
void uiTurnedOff(void)
509509
{
510510
PLAT_LOG("Light Off completed");
511-
#if(LED_ENABLE == 1)
511+
#if (LED_ENABLE == 1)
512512
LED_stopBlinking(sAppRedHandle);
513513
LED_setOff(sAppRedHandle);
514514
#endif // LED_ENABLE
515515
}
516516

517-
#if(BUTTON_ENABLE == 1)
517+
#if (BUTTON_ENABLE == 1)
518518
void AppTask::ButtonLeftEventHandler(Button_Handle handle, Button_EventMask events)
519519
{
520520
AppEvent event;
@@ -558,7 +558,7 @@ void AppTask::ButtonRightEventHandler(Button_Handle handle, Button_EventMask eve
558558

559559
void AppTask::uiInit(void)
560560
{
561-
#if(LED_ENABLE == 1)
561+
#if (LED_ENABLE == 1)
562562

563563
LED_Params ledParams;
564564

@@ -575,7 +575,7 @@ void AppTask::uiInit(void)
575575
LED_setOff(sAppGreenHandle);
576576
#endif // LED ENABLE
577577

578-
#if(BUTTON_ENABLE == 1)
578+
#if (BUTTON_ENABLE == 1)
579579
Button_Params buttonParams;
580580

581581
// Initialize buttons

examples/lock-app/cc13x4_26x4/src/AppTask.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void uiUnlocked(void);
136136
// Identify take action
137137
void identify_TakeAction(void)
138138
{
139-
#if(LED_ENABLE == 1)
139+
#if (LED_ENABLE == 1)
140140
LED_setOn(sAppGreenHandle, LED_BRIGHTNESS_MAX);
141141
LED_startBlinking(sAppGreenHandle, 1000, LED_BLINK_FOREVER);
142142
#endif // LED_ENABLE
@@ -145,7 +145,7 @@ void identify_TakeAction(void)
145145
// Identify stop action
146146
void identify_StopAction(void)
147147
{
148-
#if(LED_ENABLE == 1)
148+
#if (LED_ENABLE == 1)
149149
LED_stopBlinking(sAppGreenHandle);
150150
LED_setOff(sAppGreenHandle);
151151
#endif // LED_ENABLE
@@ -536,7 +536,7 @@ void uiUnlocked(void)
536536
#endif
537537
}
538538

539-
#if(BUTTON_ENABLE == 1)
539+
#if (BUTTON_ENABLE == 1)
540540
void AppTask::ButtonLeftEventHandler(Button_Handle handle, Button_EventMask events)
541541
{
542542
AppEvent event;
@@ -580,7 +580,7 @@ void AppTask::ButtonRightEventHandler(Button_Handle handle, Button_EventMask eve
580580

581581
void AppTask::uiInit(void)
582582
{
583-
#if(LED_ENABLE == 1)
583+
#if (LED_ENABLE == 1)
584584

585585
LED_Params ledParams;
586586

@@ -597,7 +597,7 @@ void AppTask::uiInit(void)
597597
LED_setOff(sAppGreenHandle);
598598
#endif // LED ENABLE
599599

600-
#if(BUTTON_ENABLE == 1)
600+
#if (BUTTON_ENABLE == 1)
601601
Button_Params buttonParams;
602602

603603
// Initialize buttons

examples/pump-app/cc13x4_26x4/main/AppTask.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void AppTask::ActionInitiated(PumpManager::Action_t aAction, int32_t aActor)
273273
PLAT_LOG("Stop initiated");
274274
; // TODO
275275
}
276-
#if(LED_ENABLE == 1)
276+
#if (LED_ENABLE == 1)
277277
LED_setOn(sAppGreenHandle, LED_BRIGHTNESS_MAX);
278278
LED_startBlinking(sAppGreenHandle, 50 /* ms */, LED_BLINK_FOREVER);
279279
LED_setOn(sAppRedHandle, LED_BRIGHTNESS_MAX);
@@ -289,7 +289,7 @@ void AppTask::ActionCompleted(PumpManager::Action_t aAction, int32_t aActor)
289289
if (aAction == PumpManager::START_ACTION)
290290
{
291291
PLAT_LOG("Pump start completed");
292-
#if(LED_ENABLE == 1)
292+
#if (LED_ENABLE == 1)
293293
LED_stopBlinking(sAppGreenHandle);
294294
LED_setOn(sAppGreenHandle, LED_BRIGHTNESS_MAX);
295295
LED_stopBlinking(sAppRedHandle);
@@ -301,7 +301,7 @@ void AppTask::ActionCompleted(PumpManager::Action_t aAction, int32_t aActor)
301301
else if (aAction == PumpManager::STOP_ACTION)
302302
{
303303
PLAT_LOG("Pump stop completed");
304-
#if(LED_ENABLE == 1)
304+
#if (LED_ENABLE == 1)
305305
LED_stopBlinking(sAppGreenHandle);
306306
LED_setOff(sAppGreenHandle);
307307
LED_stopBlinking(sAppRedHandle);
@@ -369,15 +369,15 @@ void AppTask::DispatchEvent(AppEvent * aEvent)
369369
break;
370370

371371
case AppEvent::kEventType_IdentifyStart:
372-
#if(LED_ENABLE == 1)
372+
#if (LED_ENABLE == 1)
373373
LED_setOn(sAppGreenHandle, LED_BRIGHTNESS_MAX);
374374
LED_startBlinking(sAppGreenHandle, sIdentifyBlinkRateMs, LED_BLINK_FOREVER);
375375
#endif
376376
PLAT_LOG("Identify started");
377377
break;
378378

379379
case AppEvent::kEventType_IdentifyStop:
380-
#if(LED_ENABLE == 1)
380+
#if (LED_ENABLE == 1)
381381
LED_stopBlinking(sAppGreenHandle);
382382
if (!PumpMgr().IsStopped())
383383
{
@@ -632,7 +632,7 @@ void AppTask::TriggerIdentifyEffectHandler(::Identify * identify)
632632
}
633633
}
634634

635-
#if(BUTTON_ENABLE == 1)
635+
#if (BUTTON_ENABLE == 1)
636636
void AppTask::ButtonLeftEventHandler(Button_Handle handle, Button_EventMask events)
637637
{
638638
AppEvent event;
@@ -676,7 +676,7 @@ void AppTask::ButtonRightEventHandler(Button_Handle handle, Button_EventMask eve
676676

677677
void AppTask::uiInit(void)
678678
{
679-
#if(LED_ENABLE == 1)
679+
#if (LED_ENABLE == 1)
680680

681681
LED_Params ledParams;
682682

@@ -693,7 +693,7 @@ void AppTask::uiInit(void)
693693
LED_setOff(sAppGreenHandle);
694694
#endif // LED ENABLE
695695

696-
#if(BUTTON_ENABLE == 1)
696+
#if (BUTTON_ENABLE == 1)
697697
Button_Params buttonParams;
698698

699699
// Initialize buttons

examples/pump-controller-app/cc13x4_26x4/main/AppTask.cpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ int AppTask::StartAppTask()
129129
// Identify take action
130130
void identify_TakeAction(void)
131131
{
132-
#if(LED_ENABLE == 1)
132+
#if (LED_ENABLE == 1)
133133
LED_setOn(sAppGreenHandle, LED_BRIGHTNESS_MAX);
134134
LED_startBlinking(sAppGreenHandle, 1000, LED_BLINK_FOREVER);
135135
#endif // LED_ENABLE
@@ -138,7 +138,7 @@ void identify_TakeAction(void)
138138
// Identify stop action
139139
void identify_StopAction(void)
140140
{
141-
#if(LED_ENABLE == 1)
141+
#if (LED_ENABLE == 1)
142142
LED_stopBlinking(sAppGreenHandle);
143143
LED_setOff(sAppGreenHandle);
144144
#endif // LED_ENABLE
@@ -275,7 +275,7 @@ void AppTask::ActionInitiated(PumpManager::Action_t aAction, int32_t aActor)
275275
PLAT_LOG("Stop initiated");
276276
; // TODO
277277
}
278-
#if(LED_ENABLE == 1)
278+
#if (LED_ENABLE == 1)
279279
LED_setOn(sAppGreenHandle, LED_BRIGHTNESS_MAX);
280280
LED_startBlinking(sAppGreenHandle, 50 /* ms */, LED_BLINK_FOREVER);
281281
LED_setOn(sAppRedHandle, LED_BRIGHTNESS_MAX);
@@ -291,7 +291,7 @@ void AppTask::ActionCompleted(PumpManager::Action_t aAction, int32_t aActor)
291291
if (aAction == PumpManager::START_ACTION)
292292
{
293293
PLAT_LOG("Pump start completed");
294-
#if(LED_ENABLE == 1)
294+
#if (LED_ENABLE == 1)
295295
LED_stopBlinking(sAppGreenHandle);
296296
LED_setOn(sAppGreenHandle, LED_BRIGHTNESS_MAX);
297297
LED_stopBlinking(sAppRedHandle);
@@ -301,7 +301,7 @@ void AppTask::ActionCompleted(PumpManager::Action_t aAction, int32_t aActor)
301301
else if (aAction == PumpManager::STOP_ACTION)
302302
{
303303
PLAT_LOG("Pump stop completed");
304-
#if(LED_ENABLE == 1)
304+
#if (LED_ENABLE == 1)
305305
LED_stopBlinking(sAppGreenHandle);
306306
LED_setOff(sAppGreenHandle);
307307
LED_stopBlinking(sAppRedHandle);
@@ -367,7 +367,7 @@ void AppTask::DispatchEvent(AppEvent * aEvent)
367367
break;
368368

369369
case AppEvent::kEventType_IdentifyStop:
370-
#if(LED_ENABLE == 1)
370+
#if (LED_ENABLE == 1)
371371
LED_stopBlinking(sAppGreenHandle);
372372

373373
if (!PumpMgr().IsStopped())
@@ -440,7 +440,7 @@ void AppTask::TriggerIdentifyEffectHandler(::Identify * identify)
440440
}
441441
}
442442

443-
#if(BUTTON_ENABLE == 1)
443+
#if (BUTTON_ENABLE == 1)
444444
void AppTask::ButtonLeftEventHandler(Button_Handle handle, Button_EventMask events)
445445
{
446446
AppEvent event;
@@ -484,7 +484,7 @@ void AppTask::ButtonRightEventHandler(Button_Handle handle, Button_EventMask eve
484484

485485
void AppTask::uiInit(void)
486486
{
487-
#if(LED_ENABLE == 1)
487+
#if (LED_ENABLE == 1)
488488

489489
LED_Params ledParams;
490490

@@ -501,7 +501,7 @@ void AppTask::uiInit(void)
501501
LED_setOff(sAppGreenHandle);
502502
#endif // LED ENABLE
503503

504-
#if(BUTTON_ENABLE == 1)
504+
#if (BUTTON_ENABLE == 1)
505505
Button_Params buttonParams;
506506

507507
// Initialize buttons

0 commit comments

Comments
 (0)