summaryrefslogtreecommitdiffstatshomepage
path: root/stm/led.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm/led.c')
-rw-r--r--stm/led.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stm/led.c b/stm/led.c
index 96fac58e2e..c517c3f6e8 100644
--- a/stm/led.c
+++ b/stm/led.c
@@ -103,6 +103,7 @@ void led_toggle(pyb_led_t led) {
return;
}
+ // XXX this assumes LED is driven by a low MCU output (true for PYBv3, false for PYBv4)
if (!(port->ODR & pin)) {
// turn LED off
PYB_LED_OFF(port, pin);