Skip to content

Commit

Permalink
Add always-on option
Browse files Browse the repository at this point in the history
  • Loading branch information
亨睿 committed Feb 18, 2020
1 parent 2c48224 commit d13c6a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/examples/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@
#define WIFI_2_SSID "Henry's Living Room 2.4GHz"
#define WIFI_2_PWD "13913954971"

// #define DEBUG_LOCAL
#define DISPLAY_ALWAYS_ON

#define DEBUG_LOCAL
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ void loop() {
Alarm.update();
EasyBuzzer.update();
ServiceClient.update();
#ifndef DISPLAY_ALWAYS_ON
checkScreenBrightness();
#endif

int timeBudget = Application.update();
if (timeBudget > 0) {
Expand Down

0 comments on commit d13c6a1

Please sign in to comment.