diff options
author | CNLohr <charles@cnlohr.com> | 2018-01-15 11:19:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-15 11:19:47 -0500 |
commit | 8be34f04a100defc9d1958aa4ce63ef02d19db69 (patch) | |
tree | f293b454dceec027a67b9e670c1c2708e862c438 /src/survive_vive.c | |
parent | 6b565075dd0d48e663fbac5291387ed0dde46be6 (diff) | |
parent | c570809ce1d1cc1d30ef4db547e6388b3fd80ac1 (diff) | |
download | libsurvive-8be34f04a100defc9d1958aa4ce63ef02d19db69.tar.gz libsurvive-8be34f04a100defc9d1958aa4ce63ef02d19db69.tar.bz2 |
Merge pull request #94 from ChristophHaag/master
fix segfault in config_set_lighthouse() and various gcc warnings
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 65636cf..934b5d3 100755 --- a/src/survive_vive.c +++ b/src/survive_vive.c @@ -309,8 +309,8 @@ static inline int getupdate_feature_report(libusb_device_handle* dev, uint16_t i int ret = libusb_control_transfer(dev, LIBUSB_REQUEST_TYPE_CLASS | LIBUSB_RECIPIENT_INTERFACE | LIBUSB_ENDPOINT_IN, 0x01, 0x300 | data[0], interface, data, datalen, 1000 ); if( ret == -9 ) return -9; - if (ret < 0) - return -1; + if (ret < 0) + return -1; return ret; } |