This commit is contained in:
KoenBreeman 2024-08-16 13:32:53 +02:00
parent 621cbc0d37
commit a44015542b

View File

@ -63,7 +63,7 @@ void SeeedMultiChannelRelaySwitch::write_state(bool state) {
}
// This will be called every time the user requests a state change.
this->parent_->relay_write(this->channel_ -1, state);
this->parent_->relay_write(this->channel_ - 1, state);
// Acknowledge new state by publishing it
this->publish_state(state);