]> sigrok.org Git - libsigrokdecode.git/commitdiff
Use new binary class definition format.
authorBert Vermeulen <redacted>
Wed, 11 Dec 2013 23:57:04 +0000 (00:57 +0100)
committerBert Vermeulen <redacted>
Wed, 11 Dec 2013 23:57:04 +0000 (00:57 +0100)
decoders/i2c/pd.py

index 45b84e81d2a3e9b706af92502d769821ef353834..ff769737e49c7ca2fed4804aff734e7739ec07f5 100644 (file)
@@ -93,10 +93,10 @@ class Decoder(srd.Decoder):
         ['warnings', 'Human-readable warnings'],
     ]
     binary = (
-        'Address read',
-        'Address write',
-        'Data read',
-        'Data write',
+        ('address-read', 'Address read'),
+        ('address-write', 'Address write'),
+        ('data-read', 'Data read'),
+        ('data-write', 'Data write'),
     )
 
     def __init__(self, **kwargs):