fix
This commit is contained in:
parent
bb9eddf973
commit
00f6418345
|
@ -16,8 +16,8 @@ namespace ratgdo {
|
||||||
void RATGDOSwitch::on_lock_state(LockState state)
|
void RATGDOSwitch::on_lock_state(LockState state)
|
||||||
{
|
{
|
||||||
bool value = state == LockState::LOCK_STATE_LOCKED;
|
bool value = state == LockState::LOCK_STATE_LOCKED;
|
||||||
this->state(value);
|
this->state = value;
|
||||||
this->publish_state(value);
|
this->publish_state();
|
||||||
}
|
}
|
||||||
void RATGDOSwitch::write_state(bool state)
|
void RATGDOSwitch::write_state(bool state)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue