return (b & 0x0f) + ((b >> 4) * 10)
class Decoder(srd.Decoder):
- api_version = 1
+ api_version = 2
id = 'dcf77'
name = 'DCF77'
longname = 'DCF77 time protocol'
self.state = 'WAIT FOR RISING EDGE'
- else:
- raise Exception('Invalid state: %s' % self.state)
-
self.oldval = val