diff options
author | cnlohr <lohr85@gmail.com> | 2017-04-07 00:53:11 -0400 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2017-04-07 00:53:11 -0400 |
commit | e030943790f202cc8af858135911df347a96cf8c (patch) | |
tree | 53c3a8352d1ad0cd56ea4a2c6ddfc0e5566051ba | |
parent | af0427bea12da9377eca4cc6a768762cf5a311c4 (diff) | |
download | libsurvive-e030943790f202cc8af858135911df347a96cf8c.tar.gz libsurvive-e030943790f202cc8af858135911df347a96cf8c.tar.bz2 |
Refactor a bit of survive_vive to re-use existing functions and simplify execution.
-rwxr-xr-x | src/survive_vive.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/survive_vive.c b/src/survive_vive.c index 1f0b5b9..8e22ea1 100755 --- a/src/survive_vive.c +++ b/src/survive_vive.c @@ -723,11 +723,9 @@ int survive_get_config( char ** config, SurviveViveData * sv, int devno, int ifa #else //Switch mode to pull config? - SV_INFO( "XXX TODO See if this can be update_feature_report" ); for( k = 0; k < 10; k++ ) { - int rk = libusb_control_transfer(dev, LIBUSB_REQUEST_TYPE_CLASS | LIBUSB_RECIPIENT_INTERFACE | LIBUSB_ENDPOINT_OUT, - 0x09, 0x300 | cfgbuff_send[0], iface, cfgbuff_send, 64, 1000 ); + update_feature_report( dev, iface, cfgbuff_send, 64 ); OGUSleep(1000); } #endif |