projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52e9443
)
telefireone-v1.0: Use a boolean value for ao_log_running
author
Keith Packard
<keithp@keithp.com>
Thu, 17 Feb 2022 05:42:50 +0000
(21:42 -0800)
committer
Keith Packard
<keithp@keithp.com>
Thu, 17 Feb 2022 05:42:50 +0000
(21:42 -0800)
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 <keithp@keithp.com>
src/telefireone-v1.0/ao_telefireone.c
patch
|
blob
|
history
diff --git
a/src/telefireone-v1.0/ao_telefireone.c
b/src/telefireone-v1.0/ao_telefireone.c
index d9c6586c7fac04417f9a139977340a3ea2938574..84140fd36ee170cc4d8bef4d0801755acfc71512 100644
(file)
--- 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);
}