drivers/ao_pad: Convert from/to 16-bit times over the air
authorKeith Packard <keithp@keithp.com>
Fri, 28 Jan 2022 22:06:25 +0000 (14:06 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 17 Feb 2022 01:26:49 +0000 (17:26 -0800)
commitdbaef3237cc6874faf8eb9030a15b578b58fd83f
treeb64c0a4c84cf09e32445a9a4348aef78f48a56fb
parent11d6e27bfd94ce58b702bfd0889f064ce1ef5a48
drivers/ao_pad: Convert from/to 16-bit times over the air

The radio protocol sends only 16 bits of time, make sure we translate
from/to those correctly. No bugs detected, just casts added to
clarify. Also fix other -Wconversion warnings.

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