summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2020-08-01 09:35:40 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2020-08-30 10:25:13 +0200
commit074cab87596c7bd156c67319d7cbd7ca8fd48eca (patch)
tree54bfdd9e770c3418a04c38e737b30d10a728d815 /decoders
parent9ade72a24f1a2c682377649ff7fb8c65393b805b (diff)
downloadlibsigrokdecode-074cab87596c7bd156c67319d7cbd7ca8fd48eca.tar.gz
libsigrokdecode-074cab87596c7bd156c67319d7cbd7ca8fd48eca.zip
ir_nec: fix typo in STOP bit width
The 0.652ms STOP bit width must have been a typo (though consistent in the previous implementation), it's not half of the 1.125ms ZERO symbol. Notice that this is an incompatible change to the decoder implementation. It affects the annotations for STOP bits and overall REMOTE button codes.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/ir_nec/pd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/ir_nec/pd.py b/decoders/ir_nec/pd.py
index f5c4799..dffe23e 100644
--- a/decoders/ir_nec/pd.py
+++ b/decoders/ir_nec/pd.py
@@ -32,7 +32,7 @@ _TIME_LC = 13.5 # leader code, in ms
_TIME_RC = 11.25 # repeat code, in ms
_TIME_ONE = 2.25 # one data bit, in ms
_TIME_ZERO = 1.125 # zero data bit, in ms
-_TIME_STOP = 0.652 # stop bit, in ms
+_TIME_STOP = 0.562 # stop bit, in ms
class SamplerateError(Exception):
pass