summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-06-04 17:05:24 +0100
committerLeah Rowe <leah@libreboot.org>2023-06-04 17:05:24 +0100
commitb40a30b11bb59e792dd9cf0b7d0da9a6820ada13 (patch)
treea2f10cd9479f294e655b690b00a831eb6447464b /util
parentb21c1dd5e8d81fb8e22570f41c14079cfece932e (diff)
util/spkmodem-recv: reduce indent in print_char()
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/spkmodem_recv/spkmodem-recv.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/spkmodem_recv/spkmodem-recv.c b/util/spkmodem_recv/spkmodem-recv.c
index f2737b15..01830bd6 100644
--- a/util/spkmodem_recv/spkmodem-recv.c
+++ b/util/spkmodem_recv/spkmodem-recv.c
@@ -112,13 +112,13 @@ print_char(void)
#endif
if (f1 < FREQ_DATA_THRESHOLD)
ascii |= (1 << ascii_bit);
- if (!ascii_bit) {
+ if (ascii_bit)
+ return;
#if DEBUG
- printf("<%c, %x>", ascii, ascii);
+ printf("<%c, %x>", ascii, ascii);
#else
- printf("%c", ascii);
+ printf("%c", ascii);
#endif
- ascii_bit = 7;
- ascii = 0;
- }
+ ascii_bit = 7;
+ ascii = 0;
}