From: Keith Packard Date: Thu, 7 Apr 2022 05:31:39 +0000 (-0700) Subject: Disable adxl debug, set long delay X-Git-Tag: 1.9.12~1^2~17^2~7 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=c6a7ea9168f1669840eef0fb080759968f4a2f97 Disable adxl debug, set long delay Signed-off-by: Keith Packard --- diff --git a/src/drivers/ao_adxl375.c b/src/drivers/ao_adxl375.c index 6f998fed..84c5f871 100644 --- a/src/drivers/ao_adxl375.c +++ b/src/drivers/ao_adxl375.c @@ -18,7 +18,7 @@ #define DEBUG_LOW 1 #define DEBUG_HIGH 2 -#define DEBUG 3 +#define DEBUG 0 #if DEBUG #define PRINTD(l, ...) do { if (DEBUG & (l)) { printf ("\r%5lu %s: ", ao_tick_count, __func__); printf(__VA_ARGS__); flush(); } } while(0) @@ -222,6 +222,7 @@ ao_adxl375_setup(void) static void ao_adxl375(void) { + ao_delay(AO_SEC_TO_TICKS(5)); ao_adxl375_setup(); for (;;) { ao_adxl375_value(&ao_adxl375_current);