Browse Source

fix 1 failing unit test

main
AJ Schmidt 4 years ago
parent
commit
33b20aca8c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      alarmdecoder/devices/serial_device.py

+ 2
- 2
alarmdecoder/devices/serial_device.py View File

@@ -189,7 +189,7 @@ class SerialDevice(Device):
except serial.SerialException as err:
raise CommError('Error reading from device: {0}'.format(str(err)), err)

return data
return data.decode('utf-8')

def read_line(self, timeout=0.0, purge_buffer=False):
"""
@@ -252,7 +252,7 @@ class SerialDevice(Device):
finally:
timer.cancel()

return ret
return ret.decode('utf-8')

def purge(self):
"""


Loading…
Cancel
Save