Skip to content

Commit 7b48cc6

Browse files
authored
Fix platform check (#244)
***NO_CI***
1 parent f52958e commit 7b48cc6

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

nanoFirmwareFlasher.Tool/NanoDeviceManager.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ public NanoDeviceManager(Options options, VerbosityLevel verbosityLevel)
2222
throw new ArgumentNullException(nameof(options));
2323
}
2424

25-
if (options.Platform != SupportedPlatform.esp32)
26-
{
27-
throw new NotSupportedException($"{nameof(options)} - {options.Platform}");
28-
}
29-
3025
_options = options;
3126
_verbosityLevel = verbosityLevel;
3227
}

nanoFirmwareFlasher.Tool/Options.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public class Options
282282
[Option(
283283
"address",
284284
Required = false,
285-
HelpText = "Address(es) where to flash the BIN file(s). Hexadecimal format (e.g. 0x08000000). Required when specifying a BIN file with -binfile argument or flashing a deployment image with -deployment argument.")]
285+
HelpText = "Address(es) where to flash the BIN file(s). Hexadecimal format (e.g. 0x08000000). Required when specifying a BIN file with --binfile argument or flashing a deployment image with --deploy argument.")]
286286
public IList<string> FlashAddress { get; set; }
287287

288288
[Option(

nanoFirmwareFlasher.Tool/SilabsManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public SilabsManager(Options options, VerbosityLevel verbosityLevel)
2424
throw new ArgumentNullException(nameof(options));
2525
}
2626

27-
if (options.Platform != SupportedPlatform.esp32)
27+
if (options.Platform != SupportedPlatform.gg11)
2828
{
2929
throw new NotSupportedException($"{nameof(options)} - {options.Platform}");
3030
}

nanoFirmwareFlasher.Tool/TIManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public TIManager(Options options, VerbosityLevel verbosityLevel)
2424
throw new ArgumentNullException(nameof(options));
2525
}
2626

27-
if (options.Platform != SupportedPlatform.esp32)
27+
if (options.Platform != SupportedPlatform.ti_simplelink)
2828
{
2929
throw new NotSupportedException($"{nameof(options)} - {options.Platform}");
3030
}

0 commit comments

Comments
 (0)