Skip to content

Commit

Permalink
generate serial capability must also be checked against CoreVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
elral committed Nov 28, 2024
1 parent 0f6a767 commit 6075748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MobiFlight/MobiFlightModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ public void SetPowerSaveMode(bool mode)
public bool GenerateNewSerial()
{
System.Version minVersion = new System.Version("1.3.0");
System.Version currentVersion = new System.Version(Version != null ? Version : "0.0.0");
System.Version currentVersion = new System.Version(CoreVersion != null ? CoreVersion : "0.0.0");
if (currentVersion.CompareTo(minVersion) < 0)
{
throw new FirmwareVersionTooLowException(minVersion, currentVersion);
Expand Down

0 comments on commit 6075748

Please sign in to comment.