altos: Go back to recording sensor data in globals
[fw/altos] / src / drivers / ao_mma655x.c
index 005bc68461bb27d8fa146e51aa6b05970937e8c4..18c5317ce8c89f6d4791062f2fec1b4d04940223 100644 (file)
@@ -250,12 +250,14 @@ __code struct ao_cmds ao_mma655x_cmds[] = {
        { 0, NULL },
 };
 
+uint16_t       ao_mma655x_current;
+
 static void
 ao_mma655x(void)
 {
        ao_mma655x_setup();
        for (;;) {
-               ao_data_ring[ao_data_head].mma655x = ao_mma655x_value();
+               ao_mma655x_current = ao_mma655x_value();
                ao_arch_critical(
                        AO_DATA_PRESENT(AO_DATA_MMA655X);
                        AO_DATA_WAIT();