changed from \r to \r\n
This commit is contained in:
parent
fd0b479ed4
commit
ab00b348f2
1 changed files with 2 additions and 2 deletions
|
|
@ -167,11 +167,11 @@ class MachineCom(object):
|
|||
return
|
||||
elif self._cmd is None:
|
||||
self._cmd = self._commandQueue.get()
|
||||
if sum([len(x) for x in self._acc_line_buffer]) + len(self._cmd) +1 < self.RX_BUFFER_SIZE-1:
|
||||
if sum([len(x) for x in self._acc_line_buffer]) + len(self._cmd) +2 < self.RX_BUFFER_SIZE-1:
|
||||
self._log("Send: %s" % self._cmd)
|
||||
self._acc_line_buffer.append(self._cmd)
|
||||
try:
|
||||
self._serial.write(self._cmd + '\r')
|
||||
self._serial.write(self._cmd + '\r\n')
|
||||
self._process_command_phase("sent", self._cmd)
|
||||
self._cmd = None
|
||||
self._send_event.set()
|
||||
|
|
|
|||
Loading…
Reference in a new issue