Fix RC Switch protocol not transmitting correctly via IR (#5411)

This commit is contained in:
MichD 2024-07-10 23:37:50 +01:00 committed by GitHub
parent ee398441b6
commit 2da939c81c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,7 @@ void RCSwitchBase::sync(RemoteTransmitData *dst) const {
}
}
void RCSwitchBase::transmit(RemoteTransmitData *dst, uint64_t code, uint8_t len) const {
dst->set_carrier_frequency(0);
dst->set_carrier_frequency(38000);
this->sync(dst);
for (int16_t i = len - 1; i >= 0; i--) {
if (code & ((uint64_t) 1 << i)) {