File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def _on_shutdown(self):
6161 def set_position (self , n ):
6262 """Public method to move to position n."""
6363 command = 'pos=%d' % n
64- self .connection .write (unicode ( command + self .eol ) )
64+ self .connection .write (command + self .eol )
6565 # The serial connection will timeout until new position is reached.
6666 # Count timeouts to detect failure to return to responsive state.
6767 count = 0
@@ -89,7 +89,7 @@ def get_position(self):
8989 def _send_command (self , command ):
9090 """Send a command and return any result."""
9191 result = None
92- self .connection .write (unicode ( command + self .eol ) )
92+ self .connection .write (command + self .eol )
9393 response = 'dummy'
9494 while response not in [command , '' ]:
9595 # Read until we receive the command echo.
You can’t perform that action at this time.
0 commit comments