diff options
author | cnlohr <lohr85@gmail.com> | 2017-04-29 17:44:22 -0400 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2017-04-29 17:44:22 -0400 |
commit | 1a6f5f8316b2dfa1baa923f5ef109b7a4890300f (patch) | |
tree | b8c18e5f6427af4dde30516f802b83197c08d7f3 /src/survive_vive.c | |
parent | c1de26a9b8b468a1ce2187da30e2584657c857fc (diff) | |
download | libsurvive-1a6f5f8316b2dfa1baa923f5ef109b7a4890300f.tar.gz libsurvive-1a6f5f8316b2dfa1baa923f5ef109b7a4890300f.tar.bz2 |
Fix survive_vive's accidental collection of code 0xfe data elements.
Diffstat (limited to 'src/survive_vive.c')
-rwxr-xr-x | src/survive_vive.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/survive_vive.c b/src/survive_vive.c index 3ce985d..4acc4e4 100755 --- a/src/survive_vive.c +++ b/src/survive_vive.c @@ -1165,7 +1165,7 @@ void survive_data_cb( SurviveUSBInterface * si ) le.sensor_id = POP1; le.length = POP2; le.timestamp = POP4; - if( le.sensor_id == 0xff ) break; + if( le.sensor_id > 0xfd ) break; handle_lightcap( obj, &le ); } break; @@ -1183,7 +1183,7 @@ void survive_data_cb( SurviveUSBInterface * si ) le.sensor_id = (uint8_t)POP2; le.length = POP2; le.timestamp = POP4; - if( le.sensor_id == 0xff ) break; + if( le.sensor_id > 0xfd ) break; handle_lightcap( obj, &le ); } break; |