Skip to content

Commit

Permalink
add bls_pm_setSuspendMask to enable sleeping, attempt to solve #5
Browse files Browse the repository at this point in the history
  • Loading branch information
biemster committed Dec 2, 2024
1 parent d79d41d commit ee5077a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ void user_init_normal(void)
blc_ll_initBasicMCU();
blc_ll_initStandby_module(mac_addr);
blc_ll_initAdvertising_module(mac_addr);
blc_ll_initPowerManagement_module();
bls_pm_setSuspendMask(SUSPEND_ADV | DEEPSLEEP_RETENTION_ADV | SUSPEND_CONN | DEEPSLEEP_RETENTION_CONN);

u8 tbl_advData[] = {
0x1e, /* Length (30) */
Expand Down
Binary file modified out/FindMy.bin
Binary file not shown.

0 comments on commit ee5077a

Please sign in to comment.