summaryrefslogtreecommitdiff
path: root/decoders/dcf77
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/dcf77')
-rw-r--r--decoders/dcf77/pd.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/decoders/dcf77/pd.py b/decoders/dcf77/pd.py
index adee403..cbdfa87 100644
--- a/decoders/dcf77/pd.py
+++ b/decoders/dcf77/pd.py
@@ -20,10 +20,7 @@
import sigrokdecode as srd
import calendar
-
-# Return the specified BCD number (max. 8 bits) as integer.
-def bcd2int(b):
- return (b & 0x0f) + ((b >> 4) * 10)
+from srdhelper import bcd2int
class SamplerateError(Exception):
pass