From 074cab87596c7bd156c67319d7cbd7ca8fd48eca Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Sat, 1 Aug 2020 09:35:40 +0200 Subject: 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. --- decoders/ir_nec/pd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoders') 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 -- cgit v1.2.3-70-g09d2