Skip to content
Snippets Groups Projects

Make sleep work again when BLE is disabled

Merged rahix requested to merge rahix/fix-broken-shutdown into master

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 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading