Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • F firmware
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 74
    • Issues 74
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 29
    • Merge requests 29
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • card10card10
  • firmware
  • Merge requests
  • !466

Make sleep work again when BLE is disabled

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Rahix requested to merge rahix/fix-broken-shutdown into master Apr 03, 2021
  • Overview 1
  • Commits 1
  • Pipelines 1
  • Changes 4

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)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: rahix/fix-broken-shutdown