This commit is contained in:
J. Nick Koston 2023-06-07 19:25:44 -05:00
parent 99a0fcdbbd
commit 931aceef65
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -33,11 +33,14 @@ namespace ratgdo {
{
bool binary;
state->current_values_as_binary(&binary);
if (binary == this->_is_on)
return;
if (binary) {
this->parent_->lightOn();
} else {
this->parent_->lightOff();
}
this->_is_on = binary;
}
} // namespace ratgdo