Lint
This commit is contained in:
@@ -819,11 +819,15 @@ script:
|
|||||||
break;
|
break;
|
||||||
case 4: // 3 Gang
|
case 4: // 3 Gang
|
||||||
if (is_model_us) {
|
if (is_model_us) {
|
||||||
id(gb_lights_1) = { light_us_rl_1_4_left, light_us_rl_2_4_left, light_us_rl_3_4_left, light_us_rl_4_4_left };
|
id(gb_lights_1) = { light_us_rl_1_4_left, light_us_rl_2_4_left,
|
||||||
id(gb_lights_2) = { light_us_rl_1_4_right, light_us_rl_2_4_right, light_us_rl_3_4_right, light_us_rl_4_4_right };
|
light_us_rl_3_4_left, light_us_rl_4_4_left };
|
||||||
|
id(gb_lights_2) = { light_us_rl_1_4_right, light_us_rl_2_4_right,
|
||||||
|
light_us_rl_3_4_right, light_us_rl_4_4_right };
|
||||||
} else {
|
} else {
|
||||||
id(gb_lights_1) = { light_eu_rl_1_4_bottom, light_eu_rl_2_4_bottom, light_eu_rl_3_4_bottom, light_eu_rl_4_4_bottom };
|
id(gb_lights_1) = { light_eu_rl_1_4_bottom, light_eu_rl_2_4_bottom,
|
||||||
id(gb_lights_2) = { light_eu_rl_1_4_top, light_eu_rl_2_4_top, light_eu_rl_3_4_top, light_eu_rl_4_4_top };
|
light_eu_rl_3_4_bottom, light_eu_rl_4_4_bottom };
|
||||||
|
id(gb_lights_2) = { light_eu_rl_1_4_top, light_eu_rl_2_4_top,
|
||||||
|
light_eu_rl_3_4_top, light_eu_rl_4_4_top };
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -148,8 +148,9 @@ script:
|
|||||||
- lambda: |-
|
- lambda: |-
|
||||||
const bool is_model_us = sl_tx_model_format->active_index().has_value() and
|
const bool is_model_us = sl_tx_model_format->active_index().has_value() and
|
||||||
sl_tx_model_format->active_index().value() == 1;
|
sl_tx_model_format->active_index().value() == 1;
|
||||||
const uint8_t num_gangs = (sl_tx_model_gang->active_index().has_value()) ?
|
const uint8_t num_gangs = (sl_tx_model_gang->active_index().has_value())
|
||||||
(sl_tx_model_gang->active_index().value() + 1) : 0;
|
? (sl_tx_model_gang->active_index().value() + 1)
|
||||||
|
: 0;
|
||||||
|
|
||||||
if (num_gangs < 1 || num_gangs > 4) {
|
if (num_gangs < 1 || num_gangs > 4) {
|
||||||
ESP_LOGE("core_hw_relays", "Invalid number of gangs: %" PRIu8, num_gangs);
|
ESP_LOGE("core_hw_relays", "Invalid number of gangs: %" PRIu8, num_gangs);
|
||||||
|
|||||||
Reference in New Issue
Block a user