| 249 | // ---- systemStart ---- |
| 250 | |
| 251 | void 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 | |
| 263 | bool isRadioOnOrPending(Device* dev) { |
| 264 | if (!device_is_ready(dev)) return false; |
no test coverage detected