Skip to content

Commit 723571b

Browse files
restyled-commitsmkardous-silabs
authored andcommitted
Restyled by clang-format
1 parent 9dd02c6 commit 723571b

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

examples/fan-control-app/silabs/include/AppTask.h

-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ class AppTask : public BaseApplication
8080
void UpdateFanControlUI();
8181

8282
private:
83-
8483
/**
8584
* @brief AppTask initialisation function
8685
*
@@ -100,5 +99,4 @@ class AppTask : public BaseApplication
10099
* @param aEvent button event being processed
101100
*/
102101
static void ButtonHandler(AppEvent * aEvent);
103-
104102
};

examples/fan-control-app/silabs/include/FanControlManager.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
#include "AppEvent.h"
2626

27-
#include <app/clusters/fan-control-server/fan-control-server.h>
2827
#include <app/clusters/fan-control-server/fan-control-delegate.h>
28+
#include <app/clusters/fan-control-server/fan-control-server.h>
2929
#include <lib/core/CHIPError.h>
3030

3131
using namespace chip;
@@ -78,9 +78,9 @@ class FanControlManager : public Delegate
7878
uint8_t speedSetting;
7979
uint8_t percentSetting;
8080
bool isPercentCurrent = false;
81-
bool isSpeedCurrent = false;
82-
bool isSpeedSetting = false;
83-
bool isFanMode = false;
81+
bool isSpeedCurrent = false;
82+
bool isSpeedSetting = false;
83+
bool isFanMode = false;
8484
bool isPercentSetting = false;
8585
EndpointId endPoint;
8686
};
@@ -103,7 +103,7 @@ class FanControlManager : public Delegate
103103
static constexpr int kFanModeHighLowerBound = 8;
104104
static constexpr int kFanModeHighUpperBound = 10;
105105

106-
static constexpr int kaLowestOffTrue = 0;
106+
static constexpr int kaLowestOffTrue = 0;
107107
static constexpr int kaLowestOffFalse = 1;
108108

109109
static FanControlManager sFan;

examples/fan-control-app/silabs/include/FanControlUI.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818

1919
#pragma once
2020

21-
#include <FanControlIcons.h>
2221
#include "demo-ui-bitmaps.h"
2322
#include "dmd.h"
2423
#include "glib.h"
2524
#include "lcd.h"
25+
#include <FanControlIcons.h>
2626

2727
class FanControlUI
2828
{

examples/fan-control-app/silabs/src/FanControlUI.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
#include <stdio.h>
2020
#include <string.h>
2121

22-
#include "FanControlUI.h"
22+
#include "AppTask.h"
2323
#include "FanControlManager.h"
24+
#include "FanControlUI.h"
2425
#include "demo-ui-bitmaps.h"
2526
#include "dmd.h"
26-
#include "AppTask.h"
2727
#if DISPLAY_ENABLED
2828
#include "glib.h"
2929
#include "lcd.h"
@@ -32,7 +32,7 @@
3232
using namespace chip::app::Clusters;
3333
using namespace chip::app::Clusters::FanControl;
3434

35-
namespace{
35+
namespace {
3636
// Bitmap
3737
const uint8_t silabsLogo[] = { SILABS_LOGO_SMALL };
3838
const uint8_t matterLogoBitmap[] = { MATTER_LOGO_BITMAP };
@@ -46,13 +46,13 @@ constexpr bool UI_WIFI = true;
4646
#else
4747
constexpr bool UI_WIFI = false;
4848
#endif
49-
}
49+
} // namespace
5050

5151
void FanControlUI::DrawUI(GLIB_Context_t * glibContext)
5252
{
5353
if (glibContext == nullptr)
5454
{
55-
ChipLogError(AppServer,"Context is null");
55+
ChipLogError(AppServer, "Context is null");
5656
return;
5757
}
5858

0 commit comments

Comments
 (0)