+ def decode(self, timeoffset, duration, data):
+ self.timeoffset = timeoffset
+ self.duration = duration
+ print("++", timeoffset, duration, len(data))
+ # duration of one bit in ps, only valid for this call to decode()
+ self.period = int(duration / len(data))