Bump version to 1.2.9.3
[fw/altos] / src / drivers / ao_mma655x.c
index 18c5317ce8c89f6d4791062f2fec1b4d04940223..ce83a5a32054b4c1dde55dbb7c4060199b3d2c28 100644 (file)
@@ -206,10 +206,7 @@ ao_mma655x_setup(void)
        ao_mma655x_reg_write(AO_MMA655X_AXISCFG,
                             AXISCFG_VALUE |
                             (1 << AO_MMA655X_AXISCFG_ST));
-       for (i = 0; i < 10; i++) {
-               a_st = ao_mma655x_value();
-               printf ("SELF-TEST %2d = %6d\n", i, a_st);
-       }
+       a_st = ao_mma655x_value();
 
        stdefl = ao_mma655x_reg_read(AO_MMA655X_STDEFL);
 
@@ -218,11 +215,6 @@ ao_mma655x_setup(void)
                             (0 << AO_MMA655X_AXISCFG_ST));
        a = ao_mma655x_value();
 
-       for (i = 0; i < 10; i++) {
-               a = ao_mma655x_value();
-               printf("NORMAL   %2d = %6d\n", i, a);
-       }
-
        ao_mma655x_reg_write(AO_MMA655X_DEVCFG,
                             DEVCFG_VALUE | (1 << AO_MMA655X_DEVCFG_ENDINIT));
        s0 = ao_mma655x_reg_read(AO_MMA655X_SN0);
@@ -234,15 +226,14 @@ ao_mma655x_setup(void)
        serial = lot & 0x1fff;
        lot >>= 12;
        pn = ao_mma655x_reg_read(AO_MMA655X_PN);
-       printf ("MMA655X lot %d serial %d number %d\n", lot, serial, pn);
-
 }
 
+uint16_t       ao_mma655x_current;
+
 static void
 ao_mma655x_dump(void)
 {
-       ao_mma655x_setup();
-       printf ("MMA655X value %d\n", ao_mma655x_value());
+       printf ("MMA655X value %d\n", ao_mma655x_current);
 }
 
 __code struct ao_cmds ao_mma655x_cmds[] = {
@@ -250,8 +241,6 @@ __code struct ao_cmds ao_mma655x_cmds[] = {
        { 0, NULL },
 };
 
-uint16_t       ao_mma655x_current;
-
 static void
 ao_mma655x(void)
 {