Only one bit is used for frame loss

This commit is contained in:
Bertrand Songis
2019-07-01 20:24:17 +02:00
parent 487b8eceaf
commit 500da58635
+1 -1
View File
@@ -81,7 +81,7 @@ class SBusFrame:
return value
def is_lost(self):
return self.byte(23) != 0
return self.byte(23) & 0x04
def __str__(self):
return "%.03fms " % self.start() + " ".join(["%02X" % self.byte(i) for i in range(25)])