projects
/
bbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b02d76
)
Added more safeguards on reset callback
author
volpol
<volpol@packet-gain.de>
Sat, 1 Sep 2018 12:42:21 +0000
(14:42 +0200)
committer
volpol
<volpol@packet-gain.de>
Sat, 1 Sep 2018 12:42:21 +0000
(14:42 +0200)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 1b6928bb438c3b94ef446061d3b18b0c7fca502a..bd1cd961add7dffbe3b2a803f27a1e29accc1273 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-39,7
+39,7
@@
static void handle_signal(int sig){
}
static void reset_cb(unsigned int gpio){
- if (GPIO_RESET != gpio) return;
+ if (GPIO_RESET != gpio
|| force_quit || input_gpio(GPIO_RESET)
) return;
fprintf (stderr, "RESET EVENT on GPIO %u\n",gpio);
force_quit = FQ_RESET;
}