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

Function systemStart

Tactility/Source/bluetooth/Bluetooth.cpp:251–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249// ---- systemStart ----
250
251void systemStart() {
252 Device* dev = findFirstRegisteredDevice();
253 if (dev == nullptr) {
254 LOGGER.warn("systemStart: no BLE device found");
255 return;
256 }
257
258 if (settings::shouldEnableOnBoot()) {
259 start(dev);
260 }
261}
262
263bool isRadioOnOrPending(Device* dev) {
264 if (!device_is_ready(dev)) return false;

Callers 1

runFunction · 0.50

Calls 4

warnMethod · 0.80
shouldEnableOnBootFunction · 0.70
startFunction · 0.70

Tested by

no test coverage detected