CodeRabbitAI suggestions

This commit is contained in:
Edward Firmo
2024-12-25 02:34:18 +01:00
parent e546fedf08
commit 7aee88c38f
5 changed files with 37 additions and 13 deletions

View File

@@ -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");