Skip to content

Commit

Permalink
examples/lorawan: don't unblock IDLE mode
Browse files Browse the repository at this point in the history
This is already unblocked and will trigger an assertion.
The code is still broken as other modes might be unblocked too,
but at least it is just as broken as it was before RIOT-OS#17895
  • Loading branch information
benpicco committed Apr 21, 2022
1 parent 237a447 commit 520aa2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/lorawan/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ int main(void)
* in general provides RAM retention after wake-up.
*/
#if IS_USED(MODULE_PM_LAYERED)
for (unsigned i = 1; i < PM_NUM_MODES; ++i) {
for (unsigned i = 1; i < PM_NUM_MODES - 1; ++i) {
pm_unblock(i);
}
#endif
Expand Down

0 comments on commit 520aa2d

Please sign in to comment.