mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Update reconnect procedure #385
This commit is contained in:
parent
4f3a93b336
commit
e87f42fa50
15 changed files with 104 additions and 132 deletions
|
|
@ -4613,6 +4613,7 @@ void Transceiver::clearReceived(void) {
|
|||
//packet_received = false;
|
||||
//memset(receive_buffer, 0x00, sizeof(receive_buffer));
|
||||
if(this->config.enabled)
|
||||
//attachInterrupt(interruptPin, handleReceive, FALLING);
|
||||
attachInterrupt(interruptPin, handleReceive, CHANGE);
|
||||
}
|
||||
void Transceiver::enableReceive(void) {
|
||||
|
|
@ -4623,6 +4624,7 @@ void Transceiver::enableReceive(void) {
|
|||
pinMode(this->config.RXPin, INPUT);
|
||||
interruptPin = digitalPinToInterrupt(this->config.RXPin);
|
||||
ELECHOUSE_cc1101.SetRx();
|
||||
//attachInterrupt(interruptPin, handleReceive, FALLING);
|
||||
attachInterrupt(interruptPin, handleReceive, CHANGE);
|
||||
Serial.printf("Enabled receive on Pin #%d Timing: %ld\n", this->config.RXPin, millis() - timing);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue