From f2bf8b96e7cde4e95a810b62fe9e4e6b0a0241ab Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 5 Mar 2025 12:32:07 +0100 Subject: [PATCH] Increase rcswitch H/L changes to 64 bits --- lib/lib_rf/rc-switch/src/RCSwitch.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/lib_rf/rc-switch/src/RCSwitch.h b/lib/lib_rf/rc-switch/src/RCSwitch.h index 28d946d65..2c6190de8 100644 --- a/lib/lib_rf/rc-switch/src/RCSwitch.h +++ b/lib/lib_rf/rc-switch/src/RCSwitch.h @@ -59,7 +59,8 @@ // Number of maximum high/Low changes per packet. // We can handle up to 36 bit * 2 H/L changes per bit + 2 for sync // Для keeloq нужно увеличить RCSWITCH_MAX_CHANGES до 23+1+66*2+1=157 -#define RCSWITCH_MAX_CHANGES 75 // default 75 - longest protocol that requires this buffer size is 38/nexus +//#define RCSWITCH_MAX_CHANGES 75 // default 75 - longest protocol that requires this buffer size is 38/nexus +#define RCSWITCH_MAX_CHANGES 131 // default 75 - Supports 64 too // separationLimit: minimum microseconds between received codes, closer codes are ignored. // according to discussion on issue #14 it might be more suitable to set the separation