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

Only show purple waiting color on led if UF2_DETECTION_DELAY_MS is not zero #372

Merged
merged 3 commits into from
Jan 9, 2024

Conversation

SukuWc
Copy link
Contributor

@SukuWc SukuWc commented Dec 28, 2023

Description of Change

UF2_DETECTION_DELAY_MS can be set to zero when PIN_BUTTON_UF2 is not GPIO0 on ESP32. This causes the board to boot application firmware instantly if the PIN_BUTTON_UF2 is not pulled low by pressing the boot button. The problem is that the RGB LEDs still turn purple momentarily indicating that the bootloader is waiting for button press. This causes unwanted flash of the LEDs. In this PR code skips board_led_on() is only called if UF2_DETECTION_DELAY_MS>0 condition is met!

Please note that for compatibility reasons if PIN_DOUBLE_RESET_RC is defined then board_led_on() will always be called regardless of UF2_DETECTION_DELAY_MS!

Copy link
Member

@hathach hathach left a comment

Choose a reason for hiding this comment

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

thank you, changes look good. I take the chance to also push some update to the code while testing it out as well.

@hathach hathach merged commit f5c24ec into adafruit:master Jan 9, 2024
89 checks passed
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