altos: Remove debug printf from accel auto-cal
authorKeith Packard <keithp@keithp.com>
Mon, 28 May 2012 17:46:51 +0000 (11:46 -0600)
committerKeith Packard <keithp@keithp.com>
Mon, 28 May 2012 17:46:51 +0000 (11:46 -0600)
Otherwise, this goes way too slow

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

index 55ec9f406e35eb8e439b3092a123ae5a209bde12..76a8ed4a3b37aaa9f2e912113b1f2f327f785f0b 100644 (file)
@@ -256,8 +256,6 @@ ao_config_accel_calibrate_auto(char *orientation) __reentrant
        while (i) {
                ao_sleep(DATA_TO_XDATA(&ao_sample_data));
                while (i && cal_data_ring != ao_sample_data) {
        while (i) {
                ao_sleep(DATA_TO_XDATA(&ao_sample_data));
                while (i && cal_data_ring != ao_sample_data) {
-                       int16_t accel = ao_data_accel(&ao_data_ring[cal_data_ring]);
-                       printf ("accel %d\n", accel);
                        accel_total += (int32_t) ao_data_accel(&ao_data_ring[cal_data_ring]);
                        cal_data_ring = ao_data_ring_next(cal_data_ring);
                        i--;
                        accel_total += (int32_t) ao_data_accel(&ao_data_ring[cal_data_ring]);
                        cal_data_ring = ao_data_ring_next(cal_data_ring);
                        i--;