Skip to content

Commit

Permalink
delayLen for secplus is local now
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulWieland committed Dec 22, 2023
1 parent 59bed21 commit 9f01eb5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/ratgdo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ void transmit(byte* payload, unsigned int length){
return;
}

uint8_t txDelayLen;
byte tempPayload[1];

txDelayLen = (lastRX + 275) - millis();
Expand Down
1 change: 0 additions & 1 deletion src/ratgdo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 9f01eb5

Please sign in to comment.