summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/stm32/mboot/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/mboot/main.c b/ports/stm32/mboot/main.c
index 015800ce4..4d7a08ace 100644
--- a/ports/stm32/mboot/main.c
+++ b/ports/stm32/mboot/main.c
@@ -415,7 +415,7 @@ void mp_hal_pin_config_speed(uint32_t port_pin, uint32_t speed) {
#define LED3 MICROPY_HW_LED4
#endif
-void led_init(void) {
+MP_WEAK void led_init(void) {
mp_hal_pin_output(LED0);
mp_hal_pin_output(LED1);
#ifdef LED2
@@ -426,7 +426,7 @@ void led_init(void) {
#endif
}
-void led_state(int led, int val) {
+MP_WEAK void led_state(int led, int val) {
if (led == 1) {
led = LED0;
}