From: Gerhard Sittig Date: Sat, 1 Aug 2020 07:35:40 +0000 (+0200) Subject: ir_nec: fix typo in STOP bit width X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=074cab87596c7bd156c67319d7cbd7ca8fd48eca;p=libsigrokdecode.git 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. --- 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