Добавлено энергосбережение для увеличения работы от аккума:
- через 60 сек экран выключается и есп уходит в сон - слейв в ожидании мастера прослушивает не постоянно 20мс/100мс
This commit is contained in:
@@ -47,6 +47,10 @@ class App {
|
||||
void sendCurrent(MessageType type);
|
||||
void updateHeartbeat();
|
||||
bool packetForCurrent(const ProtocolPacket &p) const;
|
||||
void serviceIdlePowerSave();
|
||||
void leaveIdlePowerSave(bool wakeDisplay = true);
|
||||
bool idlePowerSaveAllowed() const;
|
||||
void setActivePerformance(bool active);
|
||||
|
||||
Button startButton_, modeButton_;
|
||||
Display display_;
|
||||
@@ -75,4 +79,6 @@ class App {
|
||||
uint32_t bootCheckStartedMs_ = 0;
|
||||
uint32_t slaveRearmAtMs_ = 0;
|
||||
bool stageStartConfirmed_ = false;
|
||||
uint32_t lastUserActivityMs_ = 0;
|
||||
bool idlePowerSave_ = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user