We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6c9c2b commit 8994a70Copy full SHA for 8994a70
neato_driver/src/neato_driver/neato_driver.py
@@ -162,7 +162,7 @@ def readResponseAndUpdateState(self):
162
response = self.readResponseString()
163
for line in response.splitlines():
164
vals = line.split(",")
165
- if len(vals) >= 2 and vals[0].replace('_', '').isalpha() and vals[1].isdigit():
+ if len(vals) >= 2 and vals[0].replace('_', '').isalpha() and vals[1].replace('-','').isdigit():
166
self.state[vals[0]] = int(vals[1])
167
168
def getMotors(self):
0 commit comments