Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 28fe84f

Browse files
committed
Fix bug in main.c
BOOT_LED was not deactivated acording to settings in menuconfig
1 parent e855ce8 commit 28fe84f

File tree

1 file changed

+1
-3
lines changed
  • MicroPython_BUILD/components/micropython/esp32

1 file changed

+1
-3
lines changed

‎MicroPython_BUILD/components/micropython/esp32/main.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,10 @@ void mp_task(void *pvParameter)
106106

107107
uart_init();
108108

109-
#if CONFIG_BOOT_SET_LED >= 0
110-
#if CONFIG_BOOT_RESET_LED
109+
#if (CONFIG_BOOT_SET_LED >= 0) && defined(CONFIG_BOOT_RESET_LED)
111110
// Deactivate boot led
112111
gpio_pad_select_gpio(CONFIG_BOOT_SET_LED);
113112
GPIO_OUTPUT_SET(CONFIG_BOOT_SET_LED, CONFIG_BOOT_LED_ON ^ 1);
114-
#endif
115113
#endif
116114

117115
// Get and print reset & wakeup reasons

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /