MCPcopy Create free account
hub / github.com/SmingHub/Sming / restart

Method restart

Sming/Platform/System.cpp:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void SystemClass::restart(unsigned deferMillis)
125{
126 if(deferMillis == 0) {
127 queueCallback(system_restart);
128 } else {
129 auto timer = new AutoDeleteTimer;
130 timer->initializeMs(deferMillis, system_restart).startOnce();
131 }
132}
133
134bool SystemClass::deepSleep(uint32_t timeMilliseconds, DeepSleepOptions options)
135{

Callers 15

onBeaconFunction · 0.45
onClientFunction · 0.45
upgradeCallbackFunction · 0.45
doSwitchFunction · 0.45
handleCommandFunction · 0.45
onUploadFunction · 0.45
gotIPFunction · 0.45
COMMAND_HANDLERFunction · 0.45
initFunction · 0.45
onSentFunction · 0.45
executeMethod · 0.45
testsCompleteFunction · 0.45

Calls 1

startOnceMethod · 0.80

Tested by 1

testsCompleteFunction · 0.36