CodeRabbitAI suggestions
This commit is contained in:
@@ -638,8 +638,8 @@ script:
|
||||
then:
|
||||
- lambda: |-
|
||||
ESP_LOGCONFIG("core_hw_relays", "Relay%s mode%s:",
|
||||
id(gang_count) == 1 ? "" : "s",
|
||||
id(gang_count) == 1 ? "" : "s");
|
||||
id(gang_count_plural_suffix).c_str(),
|
||||
id(gang_count_plural_suffix).c_str());
|
||||
ESP_LOGCONFIG("core_hw_relays", " Relay 1: %s", sl_relay_1_mode->state.c_str());
|
||||
if (id(gang_count) >= 2)
|
||||
ESP_LOGCONFIG("core_hw_relays", " Relay 2: %s", sl_relay_2_mode->state.c_str());
|
||||
@@ -648,8 +648,8 @@ script:
|
||||
if (id(gang_count) >= 4)
|
||||
ESP_LOGCONFIG("core_hw_relays", " Relay 4: %s", sl_relay_4_mode->state.c_str());
|
||||
ESP_LOGCONFIG("core_hw_relays", "Relay%s state%s:",
|
||||
id(gang_count) == 1 ? "" : "s",
|
||||
id(gang_count) == 1 ? "" : "s");
|
||||
id(gang_count_plural_suffix).c_str(),
|
||||
id(gang_count_plural_suffix).c_str());
|
||||
ESP_LOGCONFIG("core_hw_relays", " Relay 1: %s", sw_relay_1->state ? "ON" : "OFF");
|
||||
if (id(gang_count) >= 2)
|
||||
ESP_LOGCONFIG("core_hw_relays", " Relay 2: %s", sw_relay_2->state ? "ON" : "OFF");
|
||||
|
||||
Reference in New Issue
Block a user