mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 02:04:13 +01:00
Fix RC Switch protocol not transmitting correctly via IR (#5411)
This commit is contained in:
parent
ee398441b6
commit
2da939c81c
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ void RCSwitchBase::sync(RemoteTransmitData *dst) const {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void RCSwitchBase::transmit(RemoteTransmitData *dst, uint64_t code, uint8_t len) 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);
|
this->sync(dst);
|
||||||
for (int16_t i = len - 1; i >= 0; i--) {
|
for (int16_t i = len - 1; i >= 0; i--) {
|
||||||
if (code & ((uint64_t) 1 << i)) {
|
if (code & ((uint64_t) 1 << i)) {
|
||||||
|
|
Loading…
Reference in a new issue