From 9f01eb52f607ba8a28f5ff1598779f9be33d0388 Mon Sep 17 00:00:00 2001 From: Paul Wieland Date: Fri, 22 Dec 2023 13:27:06 -0500 Subject: [PATCH] delayLen for secplus is local now --- README.md | 2 +- src/ratgdo.cpp | 1 + src/ratgdo.h | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 31cc48f..f432fc1 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ ratgdo also can control door openers that use a dry contact interface. Status fe * [x] Add secplus1 lock commands * [x] Fix secplus1 light control bug * [ ] Implement auto tune for obstruction sensors -* [ ] Require two of the same status message for security + 1.0 to eliminate false reports from GDO +* [x] Require two of the same status message for security + 1.0 to eliminate false reports from GDO * [ ] Flip light status on when motion detected packet is sent # Special thanks diff --git a/src/ratgdo.cpp b/src/ratgdo.cpp index 2337e8f..a7a9143 100644 --- a/src/ratgdo.cpp +++ b/src/ratgdo.cpp @@ -648,6 +648,7 @@ void transmit(byte* payload, unsigned int length){ return; } + uint8_t txDelayLen; byte tempPayload[1]; txDelayLen = (lastRX + 275) - millis(); diff --git a/src/ratgdo.h b/src/ratgdo.h index 5d78b6f..616fd97 100644 --- a/src/ratgdo.h +++ b/src/ratgdo.h @@ -77,7 +77,6 @@ bool ignoredRetained = false; unsigned int setupCompleteMillis; unsigned int rollingCodeCounter; unsigned int idCode; -uint16_t txDelayLen; byte txSP1StaticCode[4]; byte rxSP1StaticCode[SECPLUS1_CODE_LEN]; byte secplus1States[19] = {0x35,0x35,0x35,0x35,0x33,0x33,0x53,0x53,0x38,0x3A,0x3A,0x3A,0x39,0x38,0x3A, 0x38,0x3A,0x39,0x3A};