chiark / gitweb /
realtime: allow suppression of use of the PICs watchdog feature
[trains.git] / hostside / startup.c
index cab2995b9d20cc51a7969a547544c624ca6287e5..460c789d0208a18e5586b9883078ae03b366c70f 100644 (file)
@@ -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);