Skip to content

Commit d2f84f8

Browse files
committed
telefireone-v1.0: Use a boolean value for ao_log_running
Instead of reading a hex value and saving it directly, use zero/none-zero to compute a boolean instead, avoiding a type conversion warning. Signed-off-by: Keith Packard <[email protected]>
1 parent 52e9443 commit d2f84f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/telefireone-v1.0/ao_telefireone.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
static void
2727
set_logging(void)
2828
{
29-
ao_log_running = ao_cmd_hex();
29+
ao_log_running = ao_cmd_hex() != 0;
3030
ao_wakeup(&ao_log_running);
3131
}
3232

0 commit comments

Comments
 (0)