Skip to content

Commit 6aa8b32

Browse files
committed
White space change.
1 parent 9845742 commit 6aa8b32

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

ch341a.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ int32_t ch341Configure(uint16_t vid, uint16_t pid)
6262
return -1;
6363
}
6464

65-
6665
#if LIBUSB_API_VERSION < 0x01000106
67-
libusb_set_debug(NULL, 3);
66+
libusb_set_debug(NULL, 3);
6867
#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);
7069
#endif
7170

7271
if(!(devHandle = libusb_open_device_with_vid_pid(NULL, vid, pid))) {
@@ -243,7 +242,7 @@ int32_t ch341SpiCapacity(void)
243242

244243
if (ret < 0)
245244
return ret;
246-
245+
247246
if (! (in[1] == 0xFF && in[2] == 0xFF && in[3] == 0xFF))
248247
{
249248
printf("Manufacturer ID: %02x\n", in[1]);

main.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -240,17 +240,17 @@ int main(int argc, char* argv[])
240240
if (ferror(test_file))
241241
fprintf(stderr, "Error writing file [%s]\n", test_filename);
242242

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);
245245

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);
249249

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+
}
254254

255255
if (ch1 == ch2)
256256
printf("\nWrite completed successfully. \n");

0 commit comments

Comments
 (0)