Skip to content

Commit 1217b07

Browse files
metanavaentinger
andauthored
Update src/lib/motors/SmartServo.cpp
Co-authored-by: Alexander Entinger <[email protected]>
1 parent 1bc38c5 commit 1217b07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/lib/motors/SmartServo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ float SmartServoClass::getPosition(uint8_t const id)
235235
return -1.0f;
236236

237237
mbed::ScopedLock<rtos::Mutex> lock(_mtx);
238-
int position = readWordCmd(id, REG(SmartServoRegister::POSITION_H));
238+
int const position = readWordCmd(id, REG(SmartServoRegister::POSITION_H));
239239

240240
// retry one more time
241241
if (position < 0) {

0 commit comments

Comments
 (0)