altos: stm i2c debug code was calling flush() even when disabled
authorKeith Packard <keithp@keithp.com>
Wed, 27 Jun 2012 08:19:05 +0000 (01:19 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 27 Jun 2012 08:19:05 +0000 (01:19 -0700)
commit8fc643c9768f0db31a248331681af9490f5715af
tree14fbb7f2e91963186448c81120b3c28ca12c1dbf
parent0285696e5280fc64774b6c3a2fcdaa36bd36ae7c
altos: stm i2c debug code was calling flush() even when disabled

The fancy stm i2c debugging code had calls to flush() that were
invoked outside of the conditionals leading to all kinds of fun --
flush() may re-enable interrupts, yield or do all kinds of wacky
stuff, none of which is appropriate from the middle of a device driver

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