diff options
Diffstat (limited to 'calibrate.c')
-rw-r--r-- | calibrate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/calibrate.c b/calibrate.c index 8050cdd..3048dae 100644 --- a/calibrate.c +++ b/calibrate.c @@ -59,6 +59,7 @@ void my_light_process( struct SurviveObject * so, int sensor_id, int acode, int if( strcmp( so->codename, "WM0" ) == 0 ) jumpoffset += 32; else if( strcmp( so->codename, "WM1" ) == 0 ) jumpoffset += 64; + if( jumpoffset < 0 ) return; if( acode == 0 || acode == 2 ) //data = 0 { |