SelfBalancing

Dependencies:   mbed BMI160 max32630fthr USBDevice Math MAX14690

Revision:
2:ba0a55e05168
Parent:
0:4b4fbf5daa1c
Child:
4:fc8ef84a7dbc
--- a/main.cpp	Wed Apr 25 14:17:42 2018 +0300
+++ b/main.cpp	Fri May 04 13:41:28 2018 +0300
@@ -196,7 +196,7 @@
 void printBlock(BMI160 &imu, BMI160::Registers startReg, BMI160::Registers stopReg)
 {
     uint8_t numBytes = ((stopReg - startReg) + 1);
-    uint8_t buff[numBytes];
+    uint8_t buff[32];
     uint8_t offset = static_cast<uint8_t>(startReg);
 
     if(imu.readBlock(startReg, stopReg, buff) == BMI160::RTN_NO_ERROR)