8000 delay / esp_delay: transparently manage recurrent scheduled functions by d-a-v · Pull Request #8802 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

delay / esp_delay: transparently manage recurrent scheduled functions #8802

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

Merged
merged 10 commits into from
Jan 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
debug
  • Loading branch information
d-a-v committed Jan 13, 2023
commit 508214ac192ad0dd84317d426a6fcd8d5dfb24c7
9 changes: 9 additions & 0 deletions cores/esp8266/Schedule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@ void update_recurrent_grain ()
// no recurrent function, set grain to max
recurrent_max_grain_mS = std::numeric_limits<decltype(recurrent_max_grain_mS)>::max();
}

#if 1
static uint32_t last_grain = 0;
if (recurrent_max_grain_mS != last_grain)
{
::printf("grain4rsf: %u -> %u\n", last_grain, recurrent_max_grain_mS);
last_grain = recurrent_max_grain_mS;
}
#endif
}

void run_scheduled_functions()
Expand Down
0