Skip to content

Start examples using low power API#749

Draft
peterharperuk wants to merge 6 commits into
raspberrypi:developfrom
peterharperuk:low_power_examples
Draft

Start examples using low power API#749
peterharperuk wants to merge 6 commits into
raspberrypi:developfrom
peterharperuk:low_power_examples

Conversation

@peterharperuk
Copy link
Copy Markdown
Contributor

No description provided.

Comment on lines +29 to +31
if (!aon_timer_is_running()) {
low_power_start_aon_timer_at_time_ms(1776858754000);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It might be better to use persistent data here, so that it always sets the time when run? Otherwise when you load this repeatedly using picotool, the time will keep going up and never be reset to the start time

I think this would work

Suggested change
if (!aon_timer_is_running()) {
low_power_start_aon_timer_at_time_ms(1776858754000);
}
static bool __persistent_data(aon_timer_started);
if (!aon_timer_started) {
low_power_start_aon_timer_at_time_ms(1776858754000);
aon_timer_started = true;
}

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