summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
Diffstat (limited to 'decoders')
-rw-r--r--decoders/ieee488/pd.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/decoders/ieee488/pd.py b/decoders/ieee488/pd.py
index 5c25c66..ed3d39b 100644
--- a/decoders/ieee488/pd.py
+++ b/decoders/ieee488/pd.py
@@ -145,10 +145,7 @@ def _is_msb_set(b):
def _get_raw_byte(b, atn):
# "Decorate" raw byte values for stacked decoders.
- raw_byte = b
- if atn:
- raw_byte |= 0x100
- return raw_byte
+ return b | 0x100 if atn else b
def _get_raw_text(b, atn):
return ['{leader}{data:02x}'.format(leader = '/' if atn else '', data = b)]