Wait for initialization to complete before update relay status
That was crashing that method right after boot. - Solves #28
This commit is contained in:
@@ -135,7 +135,7 @@ script:
|
||||
const uint8_t num_gangs = (sl_tx_model_gang->active_index().has_value()) ?
|
||||
(sl_tx_model_gang->active_index().value() + 1) : 0;
|
||||
if (num_gangs < 1 || num_gangs > 4) {
|
||||
ESP_LOGE("hw_buttons", "Invalid number of gangs: %" PRIu8, num_gangs);
|
||||
ESP_LOGE("core_hw_buttons", "Invalid number of gangs: %" PRIu8, num_gangs);
|
||||
return;
|
||||
}
|
||||
bs_button_1->publish_state(false);
|
||||
|
||||
Reference in New Issue
Block a user