Skip to content

Commit bcdefb6

Browse files
authored
Remove flash options for esptool (#225)
***NO_CI***
1 parent 9158592 commit bcdefb6

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

nanoFirmwareFlasher.Library/EspTool.cs

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,6 @@ public partial class EspTool
3333
/// </summary>
3434
private int _baudRate = 0;
3535

36-
/// <summary>
37-
/// The flash mode for the esptool.
38-
/// </summary>
39-
/// <remarks>
40-
/// See https://github.com/espressif/esptool#flash-modes for more details
41-
/// </remarks>
42-
private readonly string _flashMode = null;
43-
44-
/// <summary>
45-
/// The flash frequency for the esptool.
46-
/// </summary>
47-
/// <remarks>
48-
/// This value should be in Hz; 40 MHz = 40.000.000 Hz
49-
/// See https://github.com/espressif/esptool#flash-modes for more details
50-
/// </remarks>
51-
private readonly int _flashFrequency = 0;
52-
5336
/// <summary>
5437
/// Partition table size, when specified in the options.
5538
/// </summary>
@@ -150,8 +133,6 @@ public EspTool(
150133
// set properties
151134
_serialPort = serialPort;
152135
_baudRate = baudRate;
153-
_flashMode = flashMode;
154-
_flashFrequency = flashFrequency;
155136
_partitionTableSize = partitionTableSize;
156137
}
157138

@@ -496,7 +477,7 @@ internal ExitCodes WriteFlash(
496477

497478
// execute write_flash command and parse the result; progress message can be found be searching for linefeed
498479
if (!RunEspTool(
499-
$"write_flash --flash_mode {_flashMode} --flash_freq {_flashFrequency}m --flash_size {flashSize} {partsArguments.ToString().Trim()}",
480+
$"write_flash --flash_size {flashSize} {partsArguments.ToString().Trim()}",
500481
false,
501482
useStandardBaudrate,
502483
true,

0 commit comments

Comments
 (0)