Testing out a space between the N-prefix and the command
This commit is contained in:
parent
30a57e21f4
commit
90a1edbbcf
1 changed files with 2 additions and 2 deletions
|
|
@ -900,8 +900,8 @@ class MachineCom(object):
|
|||
def _doSendWithChecksum(self, cmd, lineNumber):
|
||||
self._logger.debug("Sending cmd '%s' with lineNumber %r" % (cmd, lineNumber))
|
||||
|
||||
checksum = reduce(lambda x,y:x^y, map(ord, "N%d%s" % (lineNumber, cmd)))
|
||||
commandToSend = "N%d%s*%d" % (lineNumber, cmd, checksum)
|
||||
checksum = reduce(lambda x,y:x^y, map(ord, "N%d %s" % (lineNumber, cmd)))
|
||||
commandToSend = "N%d %s*%d" % (lineNumber, cmd, checksum)
|
||||
self._doSendWithoutChecksum(commandToSend)
|
||||
|
||||
def _doSendWithoutChecksum(self, cmd):
|
||||
|
|
|
|||
Loading…
Reference in a new issue