mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix childlock setting
This commit is contained in:
@@ -246,7 +246,7 @@ bool Connect::set_childlock(const char * value, const int8_t id) {
|
|||||||
}
|
}
|
||||||
bool b;
|
bool b;
|
||||||
if (Helpers::value2bool(value, b)) {
|
if (Helpers::value2bool(value, b)) {
|
||||||
write_command(0xBB5 + rc->room(), b ? 1 : 0, 7, 0xBB5 + rc->room());
|
write_command(0xBB5 + rc->room(), 7, b ? 1 : 0, 0xBB5 + rc->room());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user