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

Adds a hook for the bootloader loop. #665

Merged
merged 1 commit into from
Oct 13, 2022
Merged
Changes from all commits
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
6 changes: 5 additions & 1 deletion src/openlcb/Bootloader.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -1041,9 +1041,13 @@ bool bootloader_init() {
/// Called repeatedly in an infinite loop to run the bootloader.
///
/// @return true if the board has to be rebooted, false if the bootloader
/// should keep running (i.e. to call again).
/// should keep running (i.e., to call again).
bool bootloader_loop()
{
#ifdef BOOTLOADER_LOOP_HOOK
BOOTLOADER_LOOP_HOOK();
#endif

{
#ifdef __linux__
AtomicHolder h(&g_bootloader_lock);
Expand Down