Skip to content
Snippets Groups Projects
Commit 01fb427e authored by rahix's avatar rahix
Browse files

fix(sleep): Make sleep work again when BLE is disabled

In commit 4944aa48 ("fix(ble): Update to changes from new SDK")
a call to `BbDrvDisable()` was added to `sleep_deepsleep()`.  This
function must, however, only be called when BLE was previously
initialized, otherwise a wakeup from deepsleep will not be possible (if
it ever reaches it?).

Fix this by reworking the BLE enabled check to also be usable here, to
only call `BbDrvDisable()` when BLE is active.

Fixes: 4944aa48 ("fix(ble): Update to changes from new SDK")
Fixes: #231
parent cce77607
No related branches found
No related tags found
1 merge request!466Make sleep work again when BLE is disabled
Pipeline #5187 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment