Skip to content

Commit 5b17ff8

Browse files
Update ardupilot_methodic_configurator/data_model_vehicle_components_validation.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Amilcar Lucas <amilcar.lucas@iav.de>
1 parent 1cb3ac1 commit 5b17ff8

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

ardupilot_methodic_configurator/data_model_vehicle_components_validation.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -526,11 +526,7 @@ def _update_esc_fc_connection_choices(self, value: str, protocol_path: Component
526526
elif value in CAN_PORTS:
527527
self._possible_choices[protocol_path] = self._get_esc_connection_protocols_for_type(value) or ("None",)
528528
elif value in SERIAL_PORTS:
529-
self._possible_choices[protocol_path] = tuple(
530-
str(v["protocol"])
531-
for v in SERIAL_PROTOCOLS_DICT.values()
532-
if v["component"] == "ESC" and v["protocol"] not in ESC_TELEMETRY_ONLY_PROTOCOLS
533-
)
529+
self._possible_choices[protocol_path] = ESC_SERIAL_SAME_PORT_PROTOCOLS
534530
else:
535531
# For PWM outputs, use motor PWM types
536532
self._possible_choices[protocol_path] = self._mot_pwm_types

0 commit comments

Comments
 (0)