chiark / gitweb /
realtime: allow suppression of use of the PICs watchdog feature
[trains.git] / hostside / realtime.c
index 2a469eaa9b24a6d85f463d22522e4e6c22c1611f..4761d981a275f8596112299f049f6af5fe08d868 100644 (file)
@@ -10,6 +10,7 @@ const char *progname= "realtime";
 
 CommandInput cmdi;
 int picio_send_noise= 1;
+int disable_watchdog;
 
 static const char *device= "/dev/railway";
 static const char *logcopy_fn;
@@ -472,6 +473,7 @@ int main(int argc, const char **argv) {
       case 'm': sta_state= Sta_Manual;                   break;
       case 'V': simlog_full=1;                           break;
       case 'B': nononblock_stdin=1;                      break;
+      case 'W': disable_watchdog=1;                      break;
       case 'L': logcopy_fn= arg;                  arg=0; break;
       case 'S': simulate= arg;                    arg=0; break;
       case 'D':        debug_arg_spec(arg);              arg=0; break;