From: Keith Packard Date: Thu, 17 Feb 2022 05:42:50 +0000 (-0800) Subject: telefireone-v1.0: Use a boolean value for ao_log_running X-Git-Tag: 1.9.10.4~7 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=d2f84f860917f88a34571b8b0f64d03adf5c8f54 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 --- diff --git a/src/telefireone-v1.0/ao_telefireone.c b/src/telefireone-v1.0/ao_telefireone.c index d9c6586c..84140fd3 100644 --- a/src/telefireone-v1.0/ao_telefireone.c +++ b/src/telefireone-v1.0/ao_telefireone.c @@ -26,7 +26,7 @@ static void set_logging(void) { - ao_log_running = ao_cmd_hex(); + ao_log_running = ao_cmd_hex() != 0; ao_wakeup(&ao_log_running); }