Testing out a space between the N-prefix and the command

master
Gina Häußge 2013-06-09 16:33:59 +02:00
parent 30a57e21f4
commit 90a1edbbcf
1 changed files with 2 additions and 2 deletions

View File

@ -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):