summaryrefslogtreecommitdiffstatshomepage
path: root/stm/led.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm/led.c')
-rw-r--r--stm/led.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stm/led.c b/stm/led.c
index 683e82bc66..0e02715f46 100644
--- a/stm/led.c
+++ b/stm/led.c
@@ -103,8 +103,8 @@ 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)) {
+ // XXX this assumes LED is driven by a high MCU output (false for PYBv3, true for PYBv4)
+ if (port->ODR & pin) {
// turn LED off
PYB_LED_OFF(port, pin);
} else {