[SYS][BREAKING] Add gateway states, Offline mode and refactor sleep (#2020)
Gaterway states to improve LED management Make the sleep function accessible outside BT BREAKING remove sleep for ESP8266 BREAKING lowpowermode API changed to powermode and new mode definition Co-authored-by: Florian <1technophile@users.noreply.github.com>
This commit is contained in:
1 parent
068c2e457a
commit
f9a5c6961a
16 files changed
+367
-443
No files matched your search
+1
-1
@@ -74,7 +74,7 @@ extern void loopM5();
|
||||
// Simple construct for displaying message in lcd and oled displays
|
||||
|
||||
#define displayPrint(...) \
|
||||
if (lowpowermode < 2) M5Print(__VA_ARGS__) // only print if not in low power mode
|
||||
if (SYSConfig.powerMode < 1) M5Print(__VA_ARGS__) // only print if not in low power mode
|
||||
#define lpDisplayPrint(...) M5Print(__VA_ARGS__) // print in low power mode
|
||||
|
||||
void M5Print(char*, char* = "", char* = "");
|
||||
|
||||
Reference in new issue
Block a user