forked from Ivasoft/DSView
Add more decoders
This commit is contained in:
@@ -19,10 +19,7 @@
|
||||
##
|
||||
|
||||
import sigrokdecode as srd
|
||||
|
||||
# Return the specified BCD number (max. 8 bits) as integer.
|
||||
def bcd2int(b):
|
||||
return (b & 0x0f) + ((b >> 4) * 10)
|
||||
from common.srdhelper import bcd2int
|
||||
|
||||
def reg_list():
|
||||
l = []
|
||||
@@ -55,7 +52,7 @@ class Decoder(srd.Decoder):
|
||||
('date-time', 'Date/time', (9, 10)),
|
||||
)
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
def __init__(self):
|
||||
self.state = 'IDLE'
|
||||
self.hours = -1
|
||||
self.minutes = -1
|
||||
|
||||
Reference in New Issue
Block a user