From 0b42d8fc68e7e0c36725d905c3c88a25beb3296c Mon Sep 17 00:00:00 2001 From: Stephan Baerwolf Date: Sat, 25 Aug 2012 14:43:17 +0200 Subject: [PATCH] fix: do not ignore "USBASP_FUNC_SETISPSCK" Some usbasp supporting software runs into trouble (or at least raises error-reports), complaining not be able to set the right isp-speed. Because esp. windows-software seems to be a little bit sensitive. this patch enables USBaspLoader to ignore this cmd. properly. Signed-off-by: Stephan Baerwolf --- firmware/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/main.c b/firmware/main.c index c4b0b95..fd5dd48 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -217,7 +217,7 @@ static uchar replyBuffer[4]; } replyBuffer[3] = rval; len = 4; - }else if(rq->bRequest == USBASP_FUNC_ENABLEPROG){ + }else if((rq->bRequest == USBASP_FUNC_ENABLEPROG) || (rq->bRequest == USBASP_FUNC_SETISPSCK)){ /* replyBuffer[0] = 0; is never touched and thus always 0 which means success */ len = 1; }else if(rq->bRequest >= USBASP_FUNC_READFLASH && rq->bRequest <= USBASP_FUNC_SETLONGADDRESS){ -- 2.11.0