projects
/
pub
/
USBaspLoader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve exit logik by debouncing both: press and release of JUMPER
[pub/USBaspLoader.git]
/
firmware
/
main.c
diff --git
a/firmware/main.c
b/firmware/main.c
index
1b70c71
..
a029169
100644
(file)
--- a/
firmware/main.c
+++ b/
firmware/main.c
@@
-374,13
+374,13
@@
int __attribute__((noreturn)) main(void)
}
}
#endif
}
}
#endif
- if (stayinloader > 0x
04
) {
+ if (stayinloader > 0x
10
) {
if (!bootLoaderCondition()) {
if (!bootLoaderCondition()) {
- stayinloader-=0x
04
;
+ stayinloader-=0x
10
;
}
} else {
if (bootLoaderCondition()) {
}
} else {
if (bootLoaderCondition()) {
-
stayinloader &= 0x01
;
+
if (stayinloader > 1) stayinloader-=2
;
}
}
}
}