projects
/
pub
/
USBaspLoader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
BUGfix: Only clear MCUCSR register when bootLoaderCondition()
[pub/USBaspLoader.git]
/
firmware
/
main.c
diff --git
a/firmware/main.c
b/firmware/main.c
index
99bbb20
..
fe7d049
100644
(file)
--- a/
firmware/main.c
+++ b/
firmware/main.c
@@
-707,6
+707,7
@@
int __attribute__((__noreturn__)) main(void)
# endif
wdt_disable(); /* main app may have enabled watchdog */
#endif
+ MCUCSR = 0; /* clear all reset flags for next time */
initForUsbConnectivity();
do{
usbPoll();