File tree 4 files changed +11
-13
lines changed
examples/fan-control-app/silabs
4 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ class AppTask : public BaseApplication
80
80
void UpdateFanControlUI ();
81
81
82
82
private:
83
-
84
83
/* *
85
84
* @brief AppTask initialisation function
86
85
*
@@ -100,5 +99,4 @@ class AppTask : public BaseApplication
100
99
* @param aEvent button event being processed
101
100
*/
102
101
static void ButtonHandler (AppEvent * aEvent);
103
-
104
102
};
Original file line number Diff line number Diff line change 24
24
25
25
#include " AppEvent.h"
26
26
27
- #include < app/clusters/fan-control-server/fan-control-server.h>
28
27
#include < app/clusters/fan-control-server/fan-control-delegate.h>
28
+ #include < app/clusters/fan-control-server/fan-control-server.h>
29
29
#include < lib/core/CHIPError.h>
30
30
31
31
using namespace chip ;
@@ -78,9 +78,9 @@ class FanControlManager : public Delegate
78
78
uint8_t speedSetting;
79
79
uint8_t percentSetting;
80
80
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 ;
84
84
bool isPercentSetting = false ;
85
85
EndpointId endPoint;
86
86
};
@@ -103,7 +103,7 @@ class FanControlManager : public Delegate
103
103
static constexpr int kFanModeHighLowerBound = 8 ;
104
104
static constexpr int kFanModeHighUpperBound = 10 ;
105
105
106
- static constexpr int kaLowestOffTrue = 0 ;
106
+ static constexpr int kaLowestOffTrue = 0 ;
107
107
static constexpr int kaLowestOffFalse = 1 ;
108
108
109
109
static FanControlManager sFan ;
Original file line number Diff line number Diff line change 18
18
19
19
#pragma once
20
20
21
- #include < FanControlIcons.h>
22
21
#include " demo-ui-bitmaps.h"
23
22
#include " dmd.h"
24
23
#include " glib.h"
25
24
#include " lcd.h"
25
+ #include < FanControlIcons.h>
26
26
27
27
class FanControlUI
28
28
{
Original file line number Diff line number Diff line change 19
19
#include < stdio.h>
20
20
#include < string.h>
21
21
22
- #include " FanControlUI .h"
22
+ #include " AppTask .h"
23
23
#include " FanControlManager.h"
24
+ #include " FanControlUI.h"
24
25
#include " demo-ui-bitmaps.h"
25
26
#include " dmd.h"
26
- #include " AppTask.h"
27
27
#if DISPLAY_ENABLED
28
28
#include " glib.h"
29
29
#include " lcd.h"
32
32
using namespace chip ::app::Clusters;
33
33
using namespace chip ::app::Clusters::FanControl;
34
34
35
- namespace {
35
+ namespace {
36
36
// Bitmap
37
37
const uint8_t silabsLogo[] = { SILABS_LOGO_SMALL };
38
38
const uint8_t matterLogoBitmap[] = { MATTER_LOGO_BITMAP };
@@ -46,13 +46,13 @@ constexpr bool UI_WIFI = true;
46
46
#else
47
47
constexpr bool UI_WIFI = false ;
48
48
#endif
49
- }
49
+ } // namespace
50
50
51
51
void FanControlUI::DrawUI (GLIB_Context_t * glibContext)
52
52
{
53
53
if (glibContext == nullptr )
54
54
{
55
- ChipLogError (AppServer," Context is null" );
55
+ ChipLogError (AppServer, " Context is null" );
56
56
return ;
57
57
}
58
58
You can’t perform that action at this time.
0 commit comments