Fix string identifier format
This commit is contained in:
@@ -36,6 +36,7 @@ class SerialReader:
|
||||
while self._run_event.is_set():
|
||||
line = self.serial.readline()
|
||||
if line:
|
||||
print("Generic method")
|
||||
data = line.decode('utf-8', errors='ignore')
|
||||
self._notify(data)
|
||||
|
||||
@@ -47,4 +48,4 @@ if __name__ == "__main__":
|
||||
|
||||
reader = SerialReader("/dev/ttyUSB1", 57600)
|
||||
reader.subscribe(callback)
|
||||
reader.start()
|
||||
reader.start()
|
||||
|
||||
Reference in New Issue
Block a user