From be465111b552c7c2a2262ac49758a30a8bf1b1d5 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Thu, 14 Nov 2013 17:25:53 +0100 Subject: Use the new Decoder.register() API --- decoders/ds1307/pd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoders/ds1307') diff --git a/decoders/ds1307/pd.py b/decoders/ds1307/pd.py index 07bdebc..8652d1b 100644 --- a/decoders/ds1307/pd.py +++ b/decoders/ds1307/pd.py @@ -64,7 +64,7 @@ class Decoder(srd.Decoder): self.years = -1 def start(self): - self.out_ann = self.add(srd.OUTPUT_ANN, 'ds1307') + self.out_ann = self.register(srd.OUTPUT_ANN) def report(self): pass -- cgit v1.2.3-70-g09d2