altos: Wait for BT disconnect before sending command
authorKeith Packard <keithp@keithp.com>
Tue, 3 Mar 2015 05:11:33 +0000 (21:11 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 3 Mar 2015 05:11:33 +0000 (21:11 -0800)
commit3b133656df4698ceb7af5902711edf9253a29227
tree5a75c6a9850f03390d0e551bf2bd2f72748cd8bb
parent112f528755b6c8a2f6eef3bfec21fac981ffb44f
altos: Wait for BT disconnect before sending command

If AltosDroid manages to connect to the BT module before we've
configured it, we won't be able to talk to it as we can't force the
module to ignore connection attempts. Wait for AltosDroid to give up
and let us configure the device. Eventually, we'll manage, if
AltosDroid's delay interval is longer than the time it takes to
configure the unit.

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