diff options
Diffstat (limited to 'stm/led.c')
-rw-r--r-- | stm/led.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |