Skip to content

Conversation

microbit-carlos
Copy link
Contributor

To clear all the wake up sources on every call to power.deep_sleep().

See #60 (comment)

To clear all the wake up sources on every call to power.deep_sleep().

See #60 (comment)
@dpgeorge dpgeorge force-pushed the pwr-clear-wake-sources branch from cfddea6 to 7067aa7 Compare August 24, 2022 02:32
@dpgeorge
Copy link
Collaborator

Thanks, this looks good. Tested and it works.


void microbit_hal_power_wake_on_button(int button) {
button_obj[button]->wakeOnActive(true);
void microbit_hal_power_clear_wake_sources(void) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I added void to the argument list here.

@dpgeorge dpgeorge merged commit 7067aa7 into master Aug 24, 2022
@dpgeorge dpgeorge deleted the pwr-clear-wake-sources branch August 24, 2022 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants