X-Git-Url: http://git.linex4red.de/pub/USBaspLoader.git/blobdiff_plain/c31b47c8592f04ca20342dccac31e2c34580a3c9..364df0d7cfb9acacbb2af7ae8bdede20ae626129:/firmware/main.c diff --git a/firmware/main.c b/firmware/main.c index d419d95..9800ecf 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -226,10 +226,9 @@ static uchar replyBuffer[4]; #if BOOTLOADER_CAN_EXIT requestBootLoaderExit = 1; /* allow proper shutdown/close of connection */ #endif - }else if(rq->bRequest == USBASP_FUNC_CONNECT){ - stayinloader |= (0x01); }else{ - /* ignore: others */ + /* ignore: others, but could be USBASP_FUNC_CONNECT */ + stayinloader |= (0x01); } return len; }