first cut at turnon scripts for EasyTimer v2
[fw/altos] / src / drivers / ao_adxl375.c
index 6f998fedb7de38abc50cb4278b9682f96a7f6080..70bf92a5f1fb72e6a44d0f711de58623a711a222 100644 (file)
@@ -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)
@@ -26,7 +26,7 @@
 #define PRINTD(l,...)
 #endif
 
-#define AO_ADXL375_SPI_SPEED   ao_spi_speed(5000000)
+#define AO_ADXL375_SPI_SPEED   ao_spi_speed(AO_ADXL375_SPI_INDEX, 5000000)
 
 struct ao_adxl375_sample       ao_adxl375_current;