We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8309a16 commit d85eaadCopy full SHA for d85eaad
src/lib/motors/SmartServo.h
@@ -86,7 +86,7 @@ class SmartServoClass
86
static int constexpr MAX_POSITION = 4000;
87
88
inline bool isValidAngle(float const angle) { return ((angle >= 0.0f) && (angle <= MAX_ANGLE)); }
89
- inline bool isValidId(int const id) const { return ((id >= MIN_MOTOR_ID) && (id <= MAX_MOTOR_ID)); }
+ inline bool isValidId(int const id) const { return ((id >= MIN_MOTOR_ID) && (id <= MAX_MOTOR_ID)) || (id == BROADCAST); }
90
91
int calcChecksum ();
92
void sendPacket ();
0 commit comments