MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / powerSwitchMain

Function powerSwitchMain

Devices/unphone/Source/InitBoot.cpp:141–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141static int32_t powerSwitchMain() { // check power switch every 10th of sec
142 while (true) {
143 updatePowerSwitch();
144 tt::kernel::delayMillis(200);
145 }
146}
147
148static void startPowerSwitchThread() {
149 powerThread = std::make_unique<tt::Thread>(

Callers 1

startPowerSwitchThreadFunction · 0.85

Calls 2

updatePowerSwitchFunction · 0.85
delayMillisFunction · 0.85

Tested by

no test coverage detected