Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
fix: error 121 when initiating an stm32 flash
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian committed Nov 30, 2020
1 parent bc3dc97 commit c2a7f35
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Installer/Installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Wally"
#define MyAppVersion "3.0.1"
#define MyAppVersion "3.0.2"
#define MyAppPublisher "ZSA Technology Labs"
#define MyAppURL "https://www.zsa.io"
#define MyAppExeName "Wally.exe"
Expand Down
2 changes: 2 additions & 0 deletions UsbLibrary/DFU.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ public async Task Run(ProgressCallback progressCallback)
{
device.TotalBytes = firmware.Bytes.Length - DFU_SUFFIX_LENGTH;

await WaitForDevice();

progressCallback(0, "Erasing flash");
await EraseFlash();

Expand Down
2 changes: 1 addition & 1 deletion Wally/Models/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private async Task fetchUpdate()
HttpResponseMessage res = await fetch.GetAsync("wally-win.json");
var data = await res.Content.ReadAsStringAsync();
var update = JsonConvert.DeserializeObject<UpdateViewModel>(data);
if(_currentVersion != update.Version)
if(String.Compare(_currentVersion, update.Version) == -1)
{
logger.Log(LogSeverity.Info, "A new version of Wally is available.");
var mainWindow = (MainWindow)App.Current.MainWindow;
Expand Down
2 changes: 1 addition & 1 deletion Wally/Wally.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<LangVersion>9.0</LangVersion>
<UseWPF>true</UseWPF>
<ApplicationIcon>Wally.ico</ApplicationIcon>
<Version>3.0.1</Version>
<Version>3.0.2</Version>
<Authors>Florian Didron</Authors>
<Company>ZSA Technology Labs, Inc</Company>
<PackageProjectUrl>https://www.zsa.io/wally/</PackageProjectUrl>
Expand Down

0 comments on commit c2a7f35

Please sign in to comment.