MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / goToSleep

Method goToSleep

src/activities/ActivityManager.cpp:200–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void ActivityManager::goToSleep(bool fromTimeout) {
201 replaceActivity(std::make_unique<SleepActivity>(renderer, mappedInput, fromTimeout));
202 loop(); // Important: sleep screen must be rendered immediately, the caller will go to sleep right after this returns
203}
204
205void ActivityManager::goToBoot() { replaceActivity(std::make_unique<BootActivity>(renderer, mappedInput)); }
206

Callers 1

enterDeepSleepFunction · 0.80

Calls 1

loopFunction · 0.85

Tested by

no test coverage detected