Skip to content

Commit

Permalink
fixed firmware not updating bug
Browse files Browse the repository at this point in the history
  • Loading branch information
andymanic committed Dec 5, 2023
1 parent ce032ab commit a1a6751
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
Binary file modified Hardware/OSRTT_Full_Code.ino.bin
Binary file not shown.
Binary file added Hardware/OSRTT_Pro_Code_1.7.ino.bin
Binary file not shown.
27 changes: 15 additions & 12 deletions OSRTT Launcher/OSRTT Launcher/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public partial class Main : Form
// CHANGE THESE VALUES WHEN ISSUING A NEW RELEASE
private double boardVersion = 2.6;
private double V1DLFW = 2.8;
private double ProDLFW = 1.5;
private double ProDLFW = 1.7;
public int boardType = -1;
private string softwareVersion = "4.5";
private string softwareVersion = "4.51";

// TODO //
//
Expand Down Expand Up @@ -394,7 +394,19 @@ private void getDownloadedFirmwareVersions()
}
}
}
if (File.Exists(ProFWPath))
if (File.Exists(ProNewFWPath))
{
foreach (var f in Directory.GetFiles(ProNewFWPath))
{
if (f.Contains(".ino.bin") && f.Contains("Pro"))
{
var splitName = f.Split('_');
var splitVersion = splitName.Last().Remove(3);
ProDLFW = double.Parse(splitVersion);
}
}
}
else if (File.Exists(ProFWPath))
{
foreach (var l in File.ReadAllLines(ProFWPath))
{
Expand All @@ -406,15 +418,6 @@ private void getDownloadedFirmwareVersions()
}
}
}
foreach (var f in Directory.GetFiles(ProNewFWPath))
{
if (f.Contains(".ino.bin"))
{
var splitName = f.Split('_');
var splitVersion = splitName.Last().Remove(3);
ProDLFW = double.Parse(splitVersion);
}
}
}
catch (Exception ex)
{
Expand Down
4 changes: 2 additions & 2 deletions OSRTT Launcher/OSRTT Launcher/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.5.0.0")]
[assembly: AssemblyFileVersion("4.5.0.0")]
[assembly: AssemblyVersion("4.5.1.0")]
[assembly: AssemblyFileVersion("4.5.1.0")]

0 comments on commit a1a6751

Please sign in to comment.