X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/30c2b620de700a34a91ddef0ae97f01ea6f116bd..62022252ea4d2763e15c1150367ca972bc4926bf:/Projects/AVRISP-MKII/AVRISP-MKII.c?ds=inline diff --git a/Projects/AVRISP-MKII/AVRISP-MKII.c b/Projects/AVRISP-MKII/AVRISP-MKII.c index 7293906bb..0afb087cf 100644 --- a/Projects/AVRISP-MKII/AVRISP-MKII.c +++ b/Projects/AVRISP-MKII/AVRISP-MKII.c @@ -49,6 +49,12 @@ int main(void) for (;;) { + #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); + #endif + AVRISP_Task(); USB_USBTask(); } @@ -66,7 +72,7 @@ void SetupHardware(void) /* Hardware Initialization */ LEDs_Init(); - USB_Init(); + USB_Init(); } /** Event handler for the library USB Connection event. */