altos/micropeak-v2.0: Wait for the power supply to stabilize before measuring
authorKeith Packard <keithp@keithp.com>
Tue, 18 Jun 2019 07:11:49 +0000 (00:11 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 18 Jun 2019 07:11:49 +0000 (00:11 -0700)
commit8ec178bbc3babb072b8d53975632cf6294626e98
tree470375cb325aff1573576407233458c6111e4723
parent77df3f636ef8bf461800f5e08c28c09bfb69c48b
altos/micropeak-v2.0: Wait for the power supply to stabilize before measuring

If we don't wait before measuring the battery, it will often read
under 3.2V right at boot time, which puts MicroPeak in flight mode
instead of USB mode.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/micropeak-v2.0/ao_micropeak.c