From 364df0d7cfb9acacbb2af7ae8bdede20ae626129 Mon Sep 17 00:00:00 2001 From: Stephan Baerwolf Date: Tue, 31 Jul 2012 17:05:14 +0200 Subject: [PATCH] optimize: ah, found another 4 bytes to save Signed-off-by: Stephan Baerwolf --- firmware/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } -- 2.11.0