Jacky Tseng / Mbed 2 deprecated imu_driver

Dependencies:   mbed

Dependents:   VDU_2021

Revision:
22:713817fa6687
Parent:
21:9430046ebd9d
Child:
23:3626c7d73505
--- a/test/test.cpp	Wed Dec 18 07:11:39 2019 +0000
+++ b/test/test.cpp	Thu Dec 19 06:28:30 2019 +0000
@@ -1,5 +1,7 @@
 #include "imu_driver.hpp"
 
+#if defined(COMPILE_TEST)
+
 SPI spi2(PB_15, PB_14, PB_13); //1Mbps default, MOSI MISO SCLK, forIMU
 Serial  pc(USBTX, USBRX, 115200);   // print debug message
 
@@ -36,4 +38,6 @@
                     imu.imuProcessedData.rate[0], imu.imuProcessedData.rate[1], imu.imuProcessedData.rate[2], 
                     imu.imuProcessedData.accel[0], imu.imuProcessedData.accel[1], imu.imuProcessedData.accel[2]);
     }
-}
\ No newline at end of file
+}
+
+#endif  // COMPILE_TEST
\ No newline at end of file