Commit 26392e7d8cc6583eaa79e1fec29c37df287df437
1 parent
8b5e1e86
printf en trop
Showing
1 changed file
with
1 additions
and
12 deletions
Show diff stats
src/libusb_wrapper.c
... | ... | @@ -245,27 +245,16 @@ void getOurInterfaces(libusb_device *device, |
245 | 245 | struct libusb_interface **int_leds, |
246 | 246 | struct libusb_interface **int_vibrators |
247 | 247 | ) { |
248 | - //REDONDANCE DE CODE AVEC displayDeviceEndpoints | |
249 | - | |
250 | - // 4.2 configuration du périph usb | |
251 | 248 | struct libusb_config_descriptor *config; |
252 | 249 | int statusFetchConfig = libusb_get_active_config_descriptor(device, &config); |
253 | 250 | if (statusFetchConfig != LIBUSB_SUCCESS) { |
254 | 251 | perror("libusb_get_active_config_descriptor"); |
255 | 252 | return; |
256 | 253 | } |
257 | - | |
258 | - //caractéristiques globales | |
259 | - printf("Config.bConfigurationValue : %d\n", config->bConfigurationValue); | |
260 | - printf("Config/ bLength:%d\nbDescriptorType:%d\nbNumInterfaces:%d\n", | |
261 | - config->bLength, config->bDescriptorType, config->bNumInterfaces); | |
262 | - | |
263 | - | |
254 | + | |
264 | 255 | //itération des interfaces |
265 | 256 | printf("Itération de l'interface\n"); |
266 | 257 | for (int indexInterface = 0; indexInterface < config->bNumInterfaces; indexInterface++) { |
267 | - printf("-indexInterface=%d\n", indexInterface); | |
268 | - printf("-Altsetting=%d\n", config->interface[indexInterface].num_altsetting); | |
269 | 258 | |
270 | 259 | struct libusb_interface * interface = &config->interface[indexInterface]; |
271 | 260 | ... | ... |