From e030943790f202cc8af858135911df347a96cf8c Mon Sep 17 00:00:00 2001 From: cnlohr Date: Fri, 7 Apr 2017 00:53:11 -0400 Subject: Refactor a bit of survive_vive to re-use existing functions and simplify execution. --- src/survive_vive.c | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3