aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-08-01 06:53:08 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-08-01 06:53:08 +0000
commitfb0e6597b611731e31b5d1285e52fc81a5ffd559 (patch)
tree3c4559538b7129874319672f83dad51d96082d00
parent5dfa25f81acb5480aec091d3391ba3be2d33600d (diff)
downloadlufa-fb0e6597b611731e31b5d1285e52fc81a5ffd559.tar.gz
lufa-fb0e6597b611731e31b5d1285e52fc81a5ffd559.tar.bz2
lufa-fb0e6597b611731e31b5d1285e52fc81a5ffd559.zip
Invert the logic for the VBUS power light in the AVRISP-MKII project for the USBTINY-MKII board target.
-rw-r--r--Projects/AVRISP-MKII/AVRISP-MKII.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Projects/AVRISP-MKII/AVRISP-MKII.c b/Projects/AVRISP-MKII/AVRISP-MKII.c
index 0afb087cf..83b39ef43 100644
--- a/Projects/AVRISP-MKII/AVRISP-MKII.c
+++ b/Projects/AVRISP-MKII/AVRISP-MKII.c
@@ -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();