import calendar
# Annotation feed formats
-ANN_ASCII = 0
+ANN_TEXT = 0
# Return the specified BCD number (max. 8 bits) as integer.
def bcd2int(b):
]
options = {}
annotations = [
- # ANN_ASCII
- ['ASCII', 'TODO: description'],
+ # ANN_TEXT
+ ['Text', 'Human-readable text'],
]
def __init__(self, **kwargs):
raise Exception('Invalid DCF77 bit: %d' % c)
def decode(self, ss, es, data):
- for samplenum, (val) in data: # TODO: Handle optional PON.
-
- self.samplenum += 1 # FIXME. Use samplenum. Off-by-one?
+ for (self.samplenum, (val)) in data: # TODO: Handle optional PON.
if self.state == 'WAIT FOR RISING EDGE':
# Wait until the next rising edge occurs.