Skip to content

Commit 570b8f7

Browse files
authored
Fix: Usage of 'delay()' causes unacceptable large delay between two consecutive RS485 write commands. (#86)
This change allows for a much faster cadence of write commands.
1 parent 6388c9a commit 570b8f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/motors/SmartServo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void SmartServoClass::sendPacket()
6262
_RS485.endTransmission();
6363
// should now receive an echo of what we just sent
6464
while (_RS485.available() < len) {
65-
delay(100);
65+
delayMicroseconds(10);
6666
}
6767
// discard the echo
6868
int i = len;

0 commit comments

Comments
 (0)