Fixed Python2 remnant in interfaces

This commit is contained in:
Mark Qvist 2020-05-03 23:06:53 +02:00
parent a948d153e6
commit 4c3a874b21
3 changed files with 16 additions and 4 deletions

View file

@ -429,7 +429,7 @@ class RNodeInterface(Interface):
time_since_last = int(time.time()*1000) - last_read_ms
if len(data_buffer) > 0 and time_since_last > self.timeout:
RNS.log(str(self)+" serial read timeout", RNS.LOG_DEBUG)
data_buffer = ""
data_buffer = b""
in_frame = False
command = KISS.CMD_UNKNOWN
escape = False