optimize: ah, found another 4 bytes to save
authorStephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Tue, 31 Jul 2012 15:05:14 +0000 (17:05 +0200)
committerStephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Tue, 31 Jul 2012 18:16:54 +0000 (18:16 +0000)
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
firmware/main.c

index d419d95..9800ecf 100644 (file)
@@ -226,10 +226,9 @@ static uchar    replyBuffer[4];
 #if BOOTLOADER_CAN_EXIT
       requestBootLoaderExit = 1;      /* allow proper shutdown/close of connection */
 #endif
 #if BOOTLOADER_CAN_EXIT
       requestBootLoaderExit = 1;      /* allow proper shutdown/close of connection */
 #endif
-    }else if(rq->bRequest == USBASP_FUNC_CONNECT){
-      stayinloader        |= (0x01);
     }else{
     }else{
-        /* ignore: others */
+        /* ignore: others, but could be USBASP_FUNC_CONNECT */
+       stayinloader       |= (0x01);
     }
     return len;
 }
     }
     return len;
 }