fernly-usb-loader: Correct whitespace

Replace eight spaces with one tab.

Signed-off-by: Sean Cross <xobs@kosagi.com>
This commit is contained in:
Sean Cross 2015-06-08 09:07:39 +08:00
parent cc7d6df46c
commit 0e1eb9a346

View file

@ -1371,34 +1371,34 @@ static void do_factory_test(int serfd) {
count = snprintf(cmd, sizeof(cmd) - 1, "keypad 1\n");
write(serfd, cmd, count);
read(serfd, cmd, count);
// printf("Getting command back: ");
// printf("Getting command back: ");
fflush(stdout);
do {
ret = read(serfd, cmd, 1);
// printf("%c [%x] %d", cmd[0], cmd[0], ret);
// printf("%c [%x] %d", cmd[0], cmd[0], ret);
//printf("%c", cmd[0]);
fflush(stdout);
} while ((ret == 1) && (cmd[0] != '\n'));
// printf("\n\nWaiting for first message: ");
// printf("\n\nWaiting for first message: ");
fflush(stdout);
do {
ret = read(serfd, cmd, 1);
// printf("%c [%x] %d", cmd[0], cmd[0], ret);
// printf("%c [%x] %d", cmd[0], cmd[0], ret);
//printf("%c", cmd[0]);
// fflush(stdout);
// fflush(stdout);
} while ((ret == 1) && (cmd[0] != '\n'));
// printf("\n\nWaiting for second message: ");
// printf("\n\nWaiting for second message: ");
fflush(stdout);
do {
ret = read(serfd, cmd, 1);
// printf("%c [%x] %d", cmd[0], cmd[0], ret);
// printf("%c [%x] %d", cmd[0], cmd[0], ret);
//printf("%c", cmd[0]);
// fflush(stdout);
// fflush(stdout);
} while ((ret == 1) && (cmd[0] != '\n'));
// printf("\n\nMonitoring keypresses\n");
// printf("\n\nMonitoring keypresses\n");
needs_to_rerun = 0;
}