Skip to content

Commit

Permalink
Fix FEATHER_S2 update (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelWheeley authored Nov 4, 2021
1 parent a7ccb9d commit f3263fb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
1 change: 1 addition & 0 deletions nanoFirmwareFlasher/Esp32Operations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;

namespace nanoFramework.Tools.FirmwareFlasher
{
Expand Down
11 changes: 3 additions & 8 deletions nanoFirmwareFlasher/EspTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@ internal partial class EspTool
/// </summary>
private int _flashSize = -1;

/// <summary>
/// true if the stub program is already active and we can use the --before no_reset_no_sync parameter
/// </summary>
private bool _isStubActive = false;
private bool connectPatternFound;

private DateTime connectTimeStamp;

private bool connectPromptShown;

/// <summary>
Expand Down Expand Up @@ -531,7 +529,7 @@ private bool RunEspTool(
string noStubParameter = null;
string baudRateParameter = null;
string beforeParameter = null;
string afterParameter = hardResetAfterCommand ? "hard_reset" : "no_reset";
string afterParameter = hardResetAfterCommand ? "hard_reset" : "no_reset_stub";

if (noStub)
{
Expand Down Expand Up @@ -673,9 +671,6 @@ private bool RunEspTool(
// save output messages
_esptoolMessage = messages;

// if the stub program was used then we don't need to transfer ist again
_isStubActive = !noStub;

if(espTool.ExitCode == 0)
{
// exit code was 0 (success), all good
Expand Down
4 changes: 2 additions & 2 deletions nanoFirmwareFlasher/FirmwarePackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static List<CloudSmithPackageDetail> GetBoardList(bool communityTargets,
if (verbosity >= VerbosityLevel.Normal)
{
Console.ForegroundColor = ConsoleColor.White;
Console.Write($"Trying to find list of boards in {(preview ? "developement" : "stable")} repository");
Console.Write($"Trying to find list of boards in {(preview ? "development" : "stable")} repository");
if( string.IsNullOrEmpty(filter))
{
Console.Write(" without filter");
Expand Down Expand Up @@ -196,7 +196,7 @@ protected async System.Threading.Tasks.Task<ExitCodes> DownloadAndExtractAsync()
if (Verbosity >= VerbosityLevel.Normal)
{
Console.ForegroundColor = ConsoleColor.White;
Console.Write($"Trying to find {_targetName} in {(_preview ? "developement" : "stable")} repository...");
Console.Write($"Trying to find {_targetName} in {(_preview ? "development" : "stable")} repository...");
}

HttpResponseMessage response = await _cloudsmithClient.GetAsync(requestUri);
Expand Down

0 comments on commit f3263fb

Please sign in to comment.