Commit f492428d2d079982b230da7655514457486ac01a

Authored by achemin1
1 parent 26392e7d

meilleurs printf

Showing 2 changed files with 4 additions and 5 deletions   Show diff stats
src/libusb_wrapper.c
... ... @@ -251,9 +251,8 @@ void getOurInterfaces(libusb_device *device,
251 251 perror("libusb_get_active_config_descriptor");
252 252 return;
253 253 }
254   -
  254 +
255 255 //itération des interfaces
256   - printf("Itération de l'interface\n");
257 256 for (int indexInterface = 0; indexInterface < config->bNumInterfaces; indexInterface++) {
258 257  
259 258 struct libusb_interface * interface = &config->interface[indexInterface];
... ...
src/main.c
... ... @@ -72,14 +72,14 @@ int main(int argc, char *argv[]){
72 72 }
73 73  
74 74 //Take the interfaces
75   - printf("Search for interfaces\n");
  75 + printf("\nSearch for interfaces\n");
76 76 struct libusb_interface * int_hidjoy = NULL;
77 77 struct libusb_interface * int_leds = NULL;
78 78 struct libusb_interface * int_vibrators = NULL;
79 79 getOurInterfaces(device, &int_hidjoy, &int_leds, &int_vibrators);
80 80  
81 81 //Claim interface
82   - printf("Claim interfaces ...\n");
  82 + printf("\nClaim interfaces ...\n");
83 83 printf("-Leds\n");
84 84 interfaceclaim(device_handle, int_leds);
85 85 printf("-Vibrators\n");
... ... @@ -88,7 +88,7 @@ int main(int argc, char *argv[]){
88 88 /*LE CODE UTILE*/
89 89  
90 90 //Close
91   - printf("Unclaim interfaces ...\n");
  91 + printf("\nUnclaim interfaces ...\n");
92 92 printf("-Leds\n");
93 93 interfaceclose(device_handle, int_leds);
94 94 printf("-Vibrators\n");
... ...