plot accelerometer data

Dependencies:   PinDetect

Dependents:   ORIGINAL_SEND_ACC_DATA_TO_PLOTTER

Revision:
4:0396042de602
Parent:
3:f41e43493008
Child:
5:dd17a2229b9c
--- a/LSM9DS1.cpp	Thu Jun 25 09:17:36 2020 +0000
+++ b/LSM9DS1.cpp	Thu Jun 25 10:36:47 2020 +0000
@@ -987,6 +987,7 @@
         return I2CreadByte(_xgAddress, subAddress);
     else if (settings.device.commInterface == IMU_MODE_SPI)
         return SPIreadByte(_xgAddress, subAddress);
+return 0 ; 
 }
 
 void LSM9DS1::xgReadBytes(uint8_t subAddress, uint8_t * dest, uint8_t count)
@@ -1008,6 +1009,8 @@
         return I2CreadByte(_mAddress, subAddress);
     else if (settings.device.commInterface == IMU_MODE_SPI)
         return SPIreadByte(_mAddress, subAddress);
+        
+        return 0 ;
 }
 
 void LSM9DS1::mReadBytes(uint8_t subAddress, uint8_t * dest, uint8_t count)