If bootLoaderCondition() is false, the users firmware must
be started transparently - so leave the register for it to read!
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
// deactivated by Stephan - reset after each avrdude op is annoing!
// if(!(MCUCSR & (1 << EXTRF))) /* If this was not an external reset, ignore */
// leaveBootloader();
-
- MCUCSR = 0; /* clear all reset flags for next time */
}
static inline void bootLoaderExit(void)
# endif
wdt_disable(); /* main app may have enabled watchdog */
#endif
+ MCUCSR = 0; /* clear all reset flags for next time */
initForUsbConnectivity();
do{
usbPoll();