aboutsummaryrefslogtreecommitdiff
path: root/calibrate.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2017-03-11 22:52:58 -0500
committercnlohr <lohr85@gmail.com>2017-03-11 22:52:58 -0500
commit2231abd24eabe35b37a7a293ecdd48e370373a5a (patch)
tree7bc4f39382e6472c9b2d34e74b0f57639993a9bc /calibrate.c
parent952d5886fb885ced8ab7896dc85d901ff7d38994 (diff)
downloadlibsurvive-2231abd24eabe35b37a7a293ecdd48e370373a5a.tar.gz
libsurvive-2231abd24eabe35b37a7a293ecdd48e370373a5a.tar.bz2
Fix Charles + Josh's collective bug.
Diffstat (limited to 'calibrate.c')
-rw-r--r--calibrate.c1
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
{