mirror of
https://github.com/esphome/esphome.git
synced 2024-12-18 15:57:58 +01:00
Whirlpool ac (#1467)
* Checksum calc change * first checksum change for MODEL_DG11J1_3A
This commit is contained in:
parent
86385a1c19
commit
3c34b539b0
@ -105,7 +105,7 @@ void WhirlpoolClimate::transmit_state() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Checksum
|
// Checksum
|
||||||
for (uint8_t i = 2; i < 12; i++)
|
for (uint8_t i = 2; i < 13; i++)
|
||||||
remote_state[13] ^= remote_state[i];
|
remote_state[13] ^= remote_state[i];
|
||||||
for (uint8_t i = 14; i < 20; i++)
|
for (uint8_t i = 14; i < 20; i++)
|
||||||
remote_state[20] ^= remote_state[i];
|
remote_state[20] ^= remote_state[i];
|
||||||
@ -184,7 +184,7 @@ bool WhirlpoolClimate::on_receive(remote_base::RemoteReceiveData data) {
|
|||||||
uint8_t checksum13 = 0;
|
uint8_t checksum13 = 0;
|
||||||
uint8_t checksum20 = 0;
|
uint8_t checksum20 = 0;
|
||||||
// Calculate checksum and compare with signal value.
|
// Calculate checksum and compare with signal value.
|
||||||
for (uint8_t i = 2; i < 12; i++)
|
for (uint8_t i = 2; i < 13; i++)
|
||||||
checksum13 ^= remote_state[i];
|
checksum13 ^= remote_state[i];
|
||||||
for (uint8_t i = 14; i < 20; i++)
|
for (uint8_t i = 14; i < 20; i++)
|
||||||
checksum20 ^= remote_state[i];
|
checksum20 ^= remote_state[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user