chiark
/
gitweb
/
~ijackson
/
trains.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
realtime: allow suppression of use of the PICs watchdog feature
[trains.git]
/
hostside
/
startup.c
diff --git
a/hostside/startup.c
b/hostside/startup.c
index cab2995b9d20cc51a7969a547544c624ca6287e5..460c789d0208a18e5586b9883078ae03b366c70f 100644
(file)
--- a/
hostside/startup.c
+++ b/
hostside/startup.c
@@
-152,7
+152,7
@@
static void sta_goto(StartupState new_state) {
}
if (piob.l) serial_transmit(&piob);
- if (new_state >= Sta_Run) watchdog_start();
+ if (new_state >= Sta_Run
&& !disable_watchdog
) watchdog_start();
else watchdog_stop();
toev_start(&sta_toev);