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