Skip to content

Resolve both serial aliases when checking conflicts - #32

Open
Solarboaters wants to merge 1 commit into
openplotter:masterfrom
Solarboaters:fix/serial-alias-conflicts
Open

Solarboaters wants to merge 1 commit into
openplotter:masterfrom
Solarboaters:fix/serial-alias-conflicts

Conversation

@Solarboaters

Copy link
Copy Markdown

When two OpenPlotter serial aliases resolve to the same physical device, the conflict checker normalizes only one side and can omit a conflicting connection. Normalize both connection devices before comparing, preserving the displayed IDs and original paths. Tests cover shared physical devices and independent ports.

Validation

The included regression test reproduces the failure against the original code and passes with this change (Ran 2 tests in 0.019s). Run it with:

python3 -m unittest discover -s tests -p test_serial_alias_conflicts.py -v

The six affected OpenPlotter apps were also checked with the batch fixes combined: all 18 regression tests passed, Python source syntax checks passed, and the diffs pass whitespace checks. Tests use temporary configuration files and mocked hardware/service dependencies; no live services, GPIO, I2C, CAN or installed OpenPlotter settings were changed. Raspberry Pi hardware, live GUI and Debian package installation were not tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant