diff options
author | cnlohr <lohr85@gmail.com> | 2017-04-30 00:10:55 -0400 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2017-04-30 00:10:55 -0400 |
commit | 155124e6ac5cba02bb6370779ed3cc35bccd9d01 (patch) | |
tree | 1a664b86c0ed05efa5d4b58cd446a47e43960606 | |
parent | 1a6f5f8316b2dfa1baa923f5ef109b7a4890300f (diff) | |
download | libsurvive-155124e6ac5cba02bb6370779ed3cc35bccd9d01.tar.gz libsurvive-155124e6ac5cba02bb6370779ed3cc35bccd9d01.tar.bz2 |
Fix mistaken edit to survive_vive which dropped rest of packet when invalid sensor was found. Feels odd that this is actually an issue.
-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 4acc4e4..398ff99 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 > 0xfd ) break; + if( le.sensor_id > 0xfd ) continue; 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 > 0xfd ) break; + if( le.sensor_id > 0xfd ) continue; // handle_lightcap( obj, &le ); } break; |