projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b930b52
)
Disable adxl debug, set long delay
author
Keith Packard
<keithp@keithp.com>
Thu, 7 Apr 2022 05:31:39 +0000
(22:31 -0700)
committer
Keith Packard
<keithp@keithp.com>
Thu, 7 Apr 2022 05:31:39 +0000
(22:31 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_adxl375.c
patch
|
blob
|
history
diff --git
a/src/drivers/ao_adxl375.c
b/src/drivers/ao_adxl375.c
index 6f998fedb7de38abc50cb4278b9682f96a7f6080..84c5f871aa0ac28c3d664f725b3c433844615297 100644
(file)
--- 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);