Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixcpn): use model semver over radio semver for decoding model sources and switches #4768

Merged
merged 1 commit into from
Mar 24, 2024

Conversation

elecpower
Copy link
Collaborator

Fixes #4759 and also display message for each model file where the version is ahead of Companion.

@elecpower elecpower added companion Related to the companion software bug/regression ↩️ A new version of EdgeTX broke something labels Mar 19, 2024
@pfeerick pfeerick added this to the 2.10 milestone Mar 19, 2024
@pfeerick pfeerick force-pushed the elecpower/cpn-fix-4759-decode-v210 branch from 97c30eb to cf8c99d Compare March 23, 2024 21:50
if (modelSettingsVersion > SemanticVersion(VERSION))
qDebug() << "Warning: version not supported by Companion!";
if (modelSettingsVersion > SemanticVersion(VERSION)) {
QString prmpt = QCoreApplication::translate("YamlModelSettings", "Warning: Model settings file version %1 is not supported by this version of Companion!\n\nModel and radio settings may be corrupted if you continue.\n\nI acknowledge and accept the consequences.");
Copy link
Member

@pfeerick pfeerick Mar 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to display the model filename in question here? edit: I'm going to assume "not easily" as it appears to be working on just data of the file, so will merge this anyway, but with a plea that it give some idea as to which file is being a pain in the future if you are unlucky enough to be faced with this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A present the best I could do is display the model name and add a TODO reminder.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be great in the interim - better than a bunch of non-descript "something ain't right" errors. Just thinking back to the other todo about the error handling, maybe that is where the filename could get exposed as part of the reason for failing.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One day.....

@pfeerick pfeerick merged commit 1b73d75 into main Mar 24, 2024
3 checks passed
@pfeerick pfeerick deleted the elecpower/cpn-fix-4759-decode-v210 branch March 24, 2024 01:39
pfeerick pushed a commit that referenced this pull request Mar 24, 2024
ThomasKuehne pushed a commit to ThomasKuehne/edgetx that referenced this pull request Mar 24, 2024
felipemanga pushed a commit to felipemanga/edgetx that referenced this pull request Mar 29, 2024
ThomasKuehne pushed a commit to ThomasKuehne/edgetx that referenced this pull request Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/regression ↩️ A new version of EdgeTX broke something companion Related to the companion software
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2.10rc1 conversion issue from 2.9.4
2 participants