Change PD options to be a tuple of dictionaries.
[libsigrokdecode.git] / decoders / usb_packet / pd.py
index 752419467f28c1e3601b8fd71b7ffba3d49db747..d45e3bddc5ac9eb9b322ee88d77d088e609521ca 100644 (file)
@@ -153,9 +153,9 @@ class Decoder(srd.Decoder):
     outputs = ['usb_packet']
     probes = []
     optional_probes = []
     outputs = ['usb_packet']
     probes = []
     optional_probes = []
-    options = {
-        'signalling': ['Signalling', 'full-speed'],
-    }
+    options = (
+        {'id': 'signalling', 'desc': 'Signalling', 'default': 'full-speed'},
+    )
     annotations = [
         ['sync-ok', 'SYNC'],
         ['sync-err', 'SYNC (error)'],
     annotations = [
         ['sync-ok', 'SYNC'],
         ['sync-err', 'SYNC (error)'],