Updated write relay so that the corrected channels are written.

This commit is contained in:
KoenBreeman 2024-09-27 10:36:17 +02:00
parent a44015542b
commit b0f75a1830

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 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_ , state);
// Acknowledge new state by publishing it // Acknowledge new state by publishing it
this->publish_state(state); this->publish_state(state);