Skip to content

Commit f3263fb

Browse files
Fix FEATHER_S2 update (#92)
1 parent a7ccb9d commit f3263fb

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

nanoFirmwareFlasher/Esp32Operations.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System.Collections.Generic;
88
using System.IO;
99
using System.Linq;
10+
using System.Threading;
1011

1112
namespace nanoFramework.Tools.FirmwareFlasher
1213
{

nanoFirmwareFlasher/EspTool.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,10 @@ internal partial class EspTool
6060
/// </summary>
6161
private int _flashSize = -1;
6262

63-
/// <summary>
64-
/// true if the stub program is already active and we can use the --before no_reset_no_sync parameter
65-
/// </summary>
66-
private bool _isStubActive = false;
6763
private bool connectPatternFound;
64+
6865
private DateTime connectTimeStamp;
66+
6967
private bool connectPromptShown;
7068

7169
/// <summary>
@@ -531,7 +529,7 @@ private bool RunEspTool(
531529
string noStubParameter = null;
532530
string baudRateParameter = null;
533531
string beforeParameter = null;
534-
string afterParameter = hardResetAfterCommand ? "hard_reset" : "no_reset";
532+
string afterParameter = hardResetAfterCommand ? "hard_reset" : "no_reset_stub";
535533

536534
if (noStub)
537535
{
@@ -673,9 +671,6 @@ private bool RunEspTool(
673671
// save output messages
674672
_esptoolMessage = messages;
675673

676-
// if the stub program was used then we don't need to transfer ist again
677-
_isStubActive = !noStub;
678-
679674
if(espTool.ExitCode == 0)
680675
{
681676
// exit code was 0 (success), all good

nanoFirmwareFlasher/FirmwarePackage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static List<CloudSmithPackageDetail> GetBoardList(bool communityTargets,
7373
if (verbosity >= VerbosityLevel.Normal)
7474
{
7575
Console.ForegroundColor = ConsoleColor.White;
76-
Console.Write($"Trying to find list of boards in {(preview ? "developement" : "stable")} repository");
76+
Console.Write($"Trying to find list of boards in {(preview ? "development" : "stable")} repository");
7777
if( string.IsNullOrEmpty(filter))
7878
{
7979
Console.Write(" without filter");
@@ -196,7 +196,7 @@ protected async System.Threading.Tasks.Task<ExitCodes> DownloadAndExtractAsync()
196196
if (Verbosity >= VerbosityLevel.Normal)
197197
{
198198
Console.ForegroundColor = ConsoleColor.White;
199-
Console.Write($"Trying to find {_targetName} in {(_preview ? "developement" : "stable")} repository...");
199+
Console.Write($"Trying to find {_targetName} in {(_preview ? "development" : "stable")} repository...");
200200
}
201201

202202
HttpResponseMessage response = await _cloudsmithClient.GetAsync(requestUri);

0 commit comments

Comments
 (0)