summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2016-10-23 18:35:01 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2016-10-23 21:48:09 +0200
commitea36c1988829b9f8e9385ff6e5e506e3cab46877 (patch)
tree607d4e2bef37969dcbbabb1f45693b9cb2542339
parent98b8913915e8649cca83f543e84fbf128707b5fb (diff)
downloadlibsigrokdecode-ea36c1988829b9f8e9385ff6e5e506e3cab46877.tar.gz
libsigrokdecode-ea36c1988829b9f8e9385ff6e5e506e3cab46877.zip
uart: Default to hex format datavalue annotations.
This is in almost all cases what the user will want, only rarely ASCII (the old default) will be the more natural fit.
-rw-r--r--decoders/uart/pd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/uart/pd.py b/decoders/uart/pd.py
index 6bba653..0fa0e7f 100644
--- a/decoders/uart/pd.py
+++ b/decoders/uart/pd.py
@@ -102,7 +102,7 @@ class Decoder(srd.Decoder):
'values': (0.0, 0.5, 1.0, 1.5)},
{'id': 'bit_order', 'desc': 'Bit order', 'default': 'lsb-first',
'values': ('lsb-first', 'msb-first')},
- {'id': 'format', 'desc': 'Data format', 'default': 'ascii',
+ {'id': 'format', 'desc': 'Data format', 'default': 'hex',
'values': ('ascii', 'dec', 'hex', 'oct', 'bin')},
{'id': 'invert_rx', 'desc': 'Invert RX?', 'default': 'no',
'values': ('yes', 'no')},