altos: Add timeout for MS5607 ADC conversion samd21
authorKeith Packard <keithp@keithp.com>
Sun, 4 Dec 2022 22:17:58 +0000 (14:17 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 4 Dec 2022 22:19:52 +0000 (14:19 -0800)
commitda253f1ee9510fba93ddf5c1895570eb5081af46
treef2c254e970ffc85078a17fb14b429980d66a28e5
parentc2eb61af64b8f38d88fff885f0fccdc0100ab233
altos: Add timeout for MS5607 ADC conversion

The MS5607 should signal conversion done by pulling MISO low, but in
case it doesn't, add a 10ms timeout to wake up after the conversion
should be done.

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