]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/modbus/pd.py
sdcard_spi: add support for CMD24 including payload data
[libsigrokdecode.git] / decoders / modbus / pd.py
index 2404312ba8e760a1093aa618fa76553178150ca6..d5b39ca0725f0079f8d58462c0fa518edd823ebd 100644 (file)
@@ -819,6 +819,7 @@ class Decoder(srd.Decoder):
     license = 'gplv3+'
     inputs = ['uart']
     outputs = ['modbus']
+    tags = ['Embedded/industrial']
     annotations = (
         ('sc-server-id', ''),
         ('sc-function', ''),
@@ -847,6 +848,9 @@ class Decoder(srd.Decoder):
     )
 
     def __init__(self):
+        self.reset()
+
+    def reset(self):
         self.ADUSc = None # Start off with empty slave -> client ADU.
         self.ADUCs = None # Start off with empty client -> slave ADU.