Fix other references to gang_count_plural_suffix

This commit is contained in:
Edward Firmo
2025-08-01 09:01:37 +02:00
parent ad92799035
commit 6687c5c6a5
3 changed files with 11 additions and 8 deletions

View File

@@ -448,10 +448,11 @@ script:
- id: !extend dump_config
then:
- lambda: |-
std:string gang_count_plural_suffix = id(gang_count) > 1 ? "s" : "";
// Relay's LEDs modes
ESP_LOGCONFIG("core_hw_leds", "Relay%s LEDs mode%s:",
id(gang_count_plural_suffix).c_str(),
id(gang_count_plural_suffix).c_str());
gang_count_plural_suffix.c_str(),
gang_count_plural_suffix.c_str());
ESP_LOGCONFIG("core_hw_leds", " Relay 1: %s", id(is_us_model)
? sl_relay_1_light_mode_us->state.c_str()
: sl_relay_1_light_mode_eu->state.c_str());