fernly-usb-loader: Correct whitespace
Replace eight spaces with one tab. Signed-off-by: Sean Cross <xobs@kosagi.com>
This commit is contained in:
parent
cc7d6df46c
commit
0e1eb9a346
1 changed files with 134 additions and 134 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue