Use ao_ee_flush_internal while holding mutex
[fw/altos] / ao_ee.c
diff --git a/ao_ee.c b/ao_ee.c
index e731ba2a0b401bef36a8162a7097b57861a0baac..010774d7a49ce0fc21052a89952d6c7482e04a47 100644 (file)
--- a/ao_ee.c
+++ b/ao_ee.c
@@ -229,7 +229,7 @@ static void
 ao_ee_fill(uint16_t block)
 {
        if (block != ao_ee_block) {
-               ao_ee_flush();
+               ao_ee_flush_internal();
                ao_ee_block = block;
                ao_ee_read_block();
        }