| 261 | } |
| 262 | |
| 263 | bool isRadioOnOrPending(Device* dev) { |
| 264 | if (!device_is_ready(dev)) return false; |
| 265 | BtRadioState state; |
| 266 | if (bluetooth_get_radio_state(dev, &state) != ERROR_NONE) return false; |
| 267 | return state == BT_RADIO_STATE_ON || state == BT_RADIO_STATE_ON_PENDING; |
| 268 | } |
| 269 | |
| 270 | bool start(Device* dev) { |
| 271 | LOGGER.info("Auto-enabling BLE on boot"); |
no test coverage detected