altos: Document how delay_done is used in ao_pyro.c
authorKeith Packard <keithp@keithp.com>
Mon, 21 Feb 2022 17:43:54 +0000 (09:43 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 21 Feb 2022 17:46:08 +0000 (09:46 -0800)
commit57a6f844e2490a963ce1ef3a2beb9e47258967af
tree1c1a82a06756403f03695564704bff46dbed1138
parentd29047255c8e78d4ab2beeef678d466a6bfc0ae2
altos: Document how delay_done is used in ao_pyro.c

delay_done is the time at which the delay finishes, but non-zero
values also indicate that some delay is pending. Add a comment about
why the value is set to 1 when it is zero, and switch the tests of
this value to comparisons against zero.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_pyro.c