Skip to content

Commit

Permalink
Update create2.py
Browse files Browse the repository at this point in the history
  • Loading branch information
danimaciasperea authored Aug 9, 2018
1 parent 80e5a84 commit 0ce8d86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion irobot/robots/create2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__author__ = 'Matthew Witherwax (lemoneer)'
__maintainer__ = "Daniel Macías Perea ([email protected])"

import types
from time import sleep, time
Expand Down Expand Up @@ -679,7 +680,7 @@ def sensor_group107(self):
def firmware_version(self):
self.reset()
sleep(5)
msg = self._serial_port.read(2048).decode('utf-8')
msg = self._serial_port.read(1024).decode('utf-8')
self.start()
self._serial_port.reset_input_buffer() # reset_input_buffer() in pyserial 3.0
return msg
Expand Down

0 comments on commit 0ce8d86

Please sign in to comment.