From: Uwe Hermann Date: Sat, 1 Feb 2014 13:58:23 +0000 (+0100) Subject: dcf77: Fix incorrect startsample for "month" field. X-Git-Tag: libsigrokdecode-0.3.0~131 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bb5ebde6dce29b53a814efe3a1b1c350196674d9;p=libsigrokdecode.git dcf77: Fix incorrect startsample for "month" field. --- diff --git a/decoders/dcf77/pd.py b/decoders/dcf77/pd.py index c6cf6e5..21da4f6 100644 --- a/decoders/dcf77/pd.py +++ b/decoders/dcf77/pd.py @@ -227,7 +227,7 @@ class Decoder(srd.Decoder): if c == 49: m = bcd2int(self.tmp) mn = calendar.month_name[m] # month_name[1] == January - self.putx([14, ['Month: %d (%s)' % (m, mn), + self.putb([14, ['Month: %d (%s)' % (m, mn), 'Mon: %d (%s)' % (m, mn)]]) elif c in range(50, 57 + 1): # Year (0-99): DCF77 bits 50-57 (BCD format).