Skip to content

Commit

Permalink
Remove flash options for esptool (nanoframework#225)
Browse files Browse the repository at this point in the history
***NO_CI***
  • Loading branch information
josesimoes authored Jun 14, 2023
1 parent 9158592 commit bcdefb6
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions nanoFirmwareFlasher.Library/EspTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,6 @@ public partial class EspTool
/// </summary>
private int _baudRate = 0;

/// <summary>
/// The flash mode for the esptool.
/// </summary>
/// <remarks>
/// See https://github.com/espressif/esptool#flash-modes for more details
/// </remarks>
private readonly string _flashMode = null;

/// <summary>
/// The flash frequency for the esptool.
/// </summary>
/// <remarks>
/// This value should be in Hz; 40 MHz = 40.000.000 Hz
/// See https://github.com/espressif/esptool#flash-modes for more details
/// </remarks>
private readonly int _flashFrequency = 0;

/// <summary>
/// Partition table size, when specified in the options.
/// </summary>
Expand Down Expand Up @@ -150,8 +133,6 @@ public EspTool(
// set properties
_serialPort = serialPort;
_baudRate = baudRate;
_flashMode = flashMode;
_flashFrequency = flashFrequency;
_partitionTableSize = partitionTableSize;
}

Expand Down Expand Up @@ -496,7 +477,7 @@ internal ExitCodes WriteFlash(

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

0 comments on commit bcdefb6

Please sign in to comment.