Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pm: don't (un)block IDLE mode #17974

Merged
merged 2 commits into from
Apr 21, 2022
Merged

Conversation

benpicco
Copy link
Contributor

@benpicco benpicco commented Apr 21, 2022

Contribution description

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 #17895

Testing procedure

examples/lorawan should no longer crash on most boards.
(should still crash on samd21 boards as it would since ed9f740)

Issues/PRs references

follow-up to #17895

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
@benpicco benpicco requested review from jia200x and kaspar030 April 21, 2022 10:06
@benpicco benpicco added the Process: needs backport Integration Process: The PR is required to be backported to a release or feature branch label Apr 21, 2022
@github-actions github-actions bot added Area: examples Area: Example Applications Area: network Area: Networking Area: pkg Area: External package ports labels Apr 21, 2022
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Apr 21, 2022
Copy link
Member

@OlegHahm OlegHahm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proxy ACK from @kaspar030 (via Matrix)

@OlegHahm OlegHahm merged commit 843c16a into RIOT-OS:master Apr 21, 2022
@benpicco benpicco deleted the PM_NUM_MODES-count branch April 21, 2022 12:40
@jia200x
Copy link
Member

jia200x commented Apr 21, 2022

let's see if this fixes the LoRaWAN issue

/* sleeping is currently not supported, block all sleep modes */
for (uint8_t i = 0; i < PM_NUM_MODES; i++) {
/* sleeping is currently not supported, block all sleep modes except IDLE */
for (uint8_t i = 0; i < PM_NUM_MODES - 1; i++) {
pm_block(i);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tbh I don't see what's the point of this code - sleep modes are blocked by default on RIOT anyway.

@chrysn chrysn added this to the Release 2022.07 milestone Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: examples Area: Example Applications Area: network Area: Networking Area: pkg Area: External package ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: needs backport Integration Process: The PR is required to be backported to a release or feature branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants