From ee5077af5eaef8760bf534f198ee89ff52b469fe Mon Sep 17 00:00:00 2001 From: Lars Beemster Date: Mon, 2 Dec 2024 19:28:27 +0100 Subject: [PATCH] add bls_pm_setSuspendMask to enable sleeping, attempt to solve #5 --- app.c | 2 ++ out/FindMy.bin | Bin 21316 -> 21668 bytes 2 files changed, 2 insertions(+) diff --git a/app.c b/app.c index adb6426..5702d2b 100644 --- a/app.c +++ b/app.c @@ -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) */ diff --git a/out/FindMy.bin b/out/FindMy.bin index 94f5b1085371380d34f1ea43c88ac50bf79e907e..109f410228f09adb1b63f242822fefea067ff3d6 100755 GIT binary patch delta 3361 zcmai0dvKFg7C-k(@-;6@U(gatNSe0vAy6o=2o=)@Hff=xDPT#vT3U*tpv7f&T~{|B z(j^tt3B5v^7Sr?#gV5?&P1SXM@CE4Ds=J~%&Z@g(1>Gqnt}U&gP@6qBE&Ip*vza;b z-E;3bzw@{`=iGBA$njG|mnlH>S6;DxQzq8}M`w8dro+0=iT3bVVrKIul(05KDpCZ0 zY;8cAoZk%9Y3vJ-$nW!_!R6_L-P%^dE!Wevv1@s6`>3lx zAABk{le=>WO^1<`XxcDKh?;u`H4Bj3hGyu+vp*w^;yM>)%=-aK&?R#@0VVw|Zjn~* z&TYGjc+K#RKB$jxB}>_wVacO=(|VsF#(AXM5o50$z=GjKaS&@D_)WrJN!&%>-oSXO zvInFcE}45>Cw(vJs8i$n&;{;-wpN#P_btC}`CPD|8BB;HA+AI~SdUj?LpqK;OZrRr zW$6=^w5S02I3(c@XXSvg$dSyb8;Sf7c?NNIAq_>4PGhX7mx}&RE@-9~W;@OD7eF)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