Skip to content

Commit 30ee5e9

Browse files
committed
Check if NUM_ANALOG_INPUTS is equal to 8
If not they would need to update the Arduino IDE - see: arduino/Arduino#2148
1 parent 7339c6c commit 30ee5e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

BalancingRobotFullSize.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
#include "Protocol.h"
2828
#include "PID.h"
2929

30+
#if NUM_ANALOG_INPUTS != 8
31+
#error "Please update the Arduino IDE to version 1.5.7 or above - see: https://github.com/arduino/Arduino/pull/2148"
32+
#endif
33+
3034
double turningValue; // The turning value of the steering rod
3135
uint16_t batteryLevel; // Battery level multiplied by 100 i.e. 24.50V becomes 2450
3236

0 commit comments

Comments
 (0)