]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/sensor.cpp
Add state loading and saving to engineer
[r2c2.git] / source / libmarklin / sensor.cpp
index 6c213651e668c69929181dff42818c3ca22fbd66..9b9b5f3656f46868d452a00f52b7d22f415bd8e8 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of the MSP Märklin suite
+Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
 #include <msp/time/utils.h>
 #include <msp/time/units.h>
 #include "control.h"
@@ -30,7 +37,7 @@ void Sensor::sensor_event(unsigned a, bool s)
                        }
                }
                else
-                       off_timeout=Time::now()+Time::sec;
+                       off_timeout=Time::now()+0.5*Time::sec;
        }
 }