mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix incompletes when using remote emulation
This commit is contained in:
@@ -81,7 +81,9 @@ uint8_t Roomctrl::get_hc(uint8_t addr) {
|
|||||||
* if remote control is active send the temperature every 15 seconds
|
* if remote control is active send the temperature every 15 seconds
|
||||||
*/
|
*/
|
||||||
void Roomctrl::send(uint8_t addr) {
|
void Roomctrl::send(uint8_t addr) {
|
||||||
addr &= 0x7F;
|
if (addr & 0x80) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
uint8_t hc = get_hc(addr);
|
uint8_t hc = get_hc(addr);
|
||||||
// check address, reply only on addresses 0x18..0x1B or 0x40..0x43
|
// check address, reply only on addresses 0x18..0x1B or 0x40..0x43
|
||||||
if (hc >= HCS) {
|
if (hc >= HCS) {
|
||||||
|
|||||||
Reference in New Issue
Block a user