projects
/
gps-watch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
application: Make system reset less likely do be run by accident.
[gps-watch.git]
/
src
/
application
/
main.rs
diff --git
a/src/application/main.rs
b/src/application/main.rs
index 0fe48f7d490132ef68b06247002f4ac894bb697e..f1eb522a739068dda8977821c694e7bf768d215a 100644
(file)
--- a/
src/application/main.rs
+++ b/
src/application/main.rs
@@
-77,7
+77,10
@@
impl Timer {
}
fn reset_requested() -> bool {
- (gpio::get(gpio::GPIOA) & (1 << 12)) == 0
+ let pta1 = gpio::get(gpio::GPIOA) & (1 << 1);
+ let pte25 = gpio::get(gpio::GPIOE) & (1 << 25);
+
+ (pta1 | pte25) == 0
}
#[inline(never)]