Invert the logic for the VBUS power light in the AVRISP-MKII project for the USBTINY...
authorDean Camera <dean@fourwalledcubicle.com>
Sun, 1 Aug 2010 06:53:08 +0000 (06:53 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Sun, 1 Aug 2010 06:53:08 +0000 (06:53 +0000)
Projects/AVRISP-MKII/AVRISP-MKII.c

index 0afb087..83b39ef 100644 (file)
@@ -52,7 +52,7 @@ int main(void)
                #if (BOARD == BOARD_USBTINYMKII)
                /* On the USBTINY-MKII target, there is a secondary LED which indicates the current selected power
                   mode - either VBUS, or sourced from the VTARGET pin of the programming connectors */
-               LEDs_ChangeLEDs(LEDMASK_VBUSPOWER, (PIND & (1 << 0)) ? LEDMASK_VBUSPOWER : 0);
+               LEDs_ChangeLEDs(LEDMASK_VBUSPOWER, (PIND & (1 << 0)) ? 0 : LEDMASK_VBUSPOWER);
                #endif
                
                AVRISP_Task();