Update reconnect procedure #385

This commit is contained in:
Robert Strouse 2024-05-26 15:59:18 -07:00
parent 4f3a93b336
commit e87f42fa50
15 changed files with 104 additions and 132 deletions

View file

@ -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);
}