summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2019-11-24 16:33:32 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2019-11-24 16:41:53 +0100
commitf57bde305943ee2787f509625ff64299640562b1 (patch)
tree466667bd4dd38f9ae8777883a6dedc9f0bc962a2
parent0b137b0d5e1cd9a42ab57edbb6e1c724ca88f692 (diff)
downloadlibsigrokdecode-f57bde305943ee2787f509625ff64299640562b1.tar.gz
libsigrokdecode-f57bde305943ee2787f509625ff64299640562b1.zip
amulet_ascii: Drop unneeded rxtx_channels.
-rw-r--r--decoders/amulet_ascii/pd.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/decoders/amulet_ascii/pd.py b/decoders/amulet_ascii/pd.py
index 23f5a15..54733ef 100644
--- a/decoders/amulet_ascii/pd.py
+++ b/decoders/amulet_ascii/pd.py
@@ -24,7 +24,6 @@ from .lists import *
L = len(cmds)
RX = 0
TX = 1
-rxtx_channels = ('RX', 'TX')
# Don't forget to keep this in sync with 'cmds' is lists.py.
class Ann:
@@ -59,9 +58,9 @@ class Decoder(srd.Decoder):
)
options = (
{'id': 'ms_chan', 'desc': 'Master -> slave channel',
- 'default': rxtx_channels[0], 'values': rxtx_channels},
+ 'default': 'RX', 'values': ('RX', 'TX')},
{'id': 'sm_chan', 'desc': 'Slave -> master channel',
- 'default': rxtx_channels[1], 'values': rxtx_channels},
+ 'default': 'TX', 'values': ('RX', 'TX')},
)
def __init__(self):