File tree Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,10 @@ int32_t ch341Configure(uint16_t vid, uint16_t pid)
62
62
return -1 ;
63
63
}
64
64
65
-
66
65
#if LIBUSB_API_VERSION < 0x01000106
67
- libusb_set_debug (NULL , 3 );
66
+ libusb_set_debug (NULL , 3 );
68
67
#else
69
- libusb_set_option (NULL , LIBUSB_OPTION_LOG_LEVEL , LIBUSB_LOG_LEVEL_INFO );
68
+ libusb_set_option (NULL , LIBUSB_OPTION_LOG_LEVEL , LIBUSB_LOG_LEVEL_INFO );
70
69
#endif
71
70
72
71
if (!(devHandle = libusb_open_device_with_vid_pid (NULL , vid , pid ))) {
@@ -243,7 +242,7 @@ int32_t ch341SpiCapacity(void)
243
242
244
243
if (ret < 0 )
245
244
return ret ;
246
-
245
+
247
246
if (! (in [1 ] == 0xFF && in [2 ] == 0xFF && in [3 ] == 0xFF ))
248
247
{
249
248
printf ("Manufacturer ID: %02x\n" , in [1 ]);
Original file line number Diff line number Diff line change @@ -240,17 +240,17 @@ int main(int argc, char* argv[])
240
240
if (ferror (test_file ))
241
241
fprintf (stderr , "Error writing file [%s]\n" , test_filename );
242
242
243
- fseek (fp , 0 , SEEK_SET );
244
- fseek (test_file , 0 , SEEK_SET );
243
+ fseek (fp , 0 , SEEK_SET );
244
+ fseek (test_file , 0 , SEEK_SET );
245
245
246
- int ch1 , ch2 ;
247
- ch1 = getc (fp );
248
- ch2 = getc (test_file );
246
+ int ch1 , ch2 ;
247
+ ch1 = getc (fp );
248
+ ch2 = getc (test_file );
249
249
250
- while ((ch1 != EOF ) && (ch2 != EOF ) && (ch1 == ch2 )) {
251
- ch1 = getc (fp );
252
- ch2 = getc (test_file );
253
- }
250
+ while ((ch1 != EOF ) && (ch2 != EOF ) && (ch1 == ch2 )) {
251
+ ch1 = getc (fp );
252
+ ch2 = getc (test_file );
253
+ }
254
254
255
255
if (ch1 == ch2 )
256
256
printf ("\nWrite completed successfully. \n" );
You can’t perform that action at this time.
0 commit comments