@@ -14,7 +14,7 @@ namespace nanoFramework.Tools.FirmwareFlasher
1414 internal class Esp32Operations
1515 {
1616 public static ExitCodes BackupFlash (
17- EspTool tool ,
17+ EspTool tool ,
1818 Esp32DeviceInfo device ,
1919 string backupPath ,
2020 string fileName ,
@@ -42,7 +42,7 @@ public static ExitCodes BackupFlash(
4242 }
4343
4444 // file name specified
45- if ( string . IsNullOrEmpty ( fileName ) )
45+ if ( string . IsNullOrEmpty ( fileName ) )
4646 {
4747 fileName = $ "{ device . ChipName } _0x{ device . MacAddress } _{ DateTime . UtcNow . ToShortDateString ( ) } .bin";
4848 }
@@ -62,7 +62,7 @@ public static ExitCodes BackupFlash(
6262 }
6363 }
6464
65- if ( verbosity >= VerbosityLevel . Normal )
65+ if ( verbosity >= VerbosityLevel . Normal )
6666 {
6767 Console . ForegroundColor = ConsoleColor . Yellow ;
6868 Console . WriteLine ( $ "Backing up the firmware to \r \n { backupFilePath } ...") ;
@@ -81,12 +81,12 @@ public static ExitCodes BackupFlash(
8181 }
8282
8383 internal static async System . Threading . Tasks . Task < ExitCodes > UpdateFirmwareAsync (
84- EspTool espTool ,
85- Esp32DeviceInfo esp32Device ,
84+ EspTool espTool ,
85+ Esp32DeviceInfo esp32Device ,
8686 string targetName ,
8787 bool updateFw ,
88- string fwVersion ,
89- bool preview ,
88+ string fwVersion ,
89+ bool preview ,
9090 string applicationPath ,
9191 string deploymentAddress ,
9292 string clrFile ,
@@ -197,8 +197,8 @@ internal static async System.Threading.Tasks.Task<ExitCodes> UpdateFirmwareAsync
197197 }
198198
199199 Esp32Firmware firmware = new Esp32Firmware (
200- targetName ,
201- fwVersion ,
200+ targetName ,
201+ fwVersion ,
202202 preview ,
203203 partitionTableSize )
204204 {
@@ -227,7 +227,7 @@ internal static async System.Threading.Tasks.Task<ExitCodes> UpdateFirmwareAsync
227227 if ( updateFw )
228228 {
229229 operationResult = await firmware . DownloadAndExtractAsync ( esp32Device . FlashSize ) ;
230-
230+
231231 if ( operationResult != ExitCodes . OK )
232232 {
233233 return operationResult ;
@@ -236,7 +236,7 @@ internal static async System.Threading.Tasks.Task<ExitCodes> UpdateFirmwareAsync
236236 }
237237
238238 // if updating with a CRL file, need to have a new fw package
239- if ( updateCLRfile )
239+ if ( updateCLRfile )
240240 {
241241 // remove the CLR file from the image
242242 firmware . FlashPartitions . Remove ( Esp32Firmware . CLRAddress ) ;
@@ -307,7 +307,7 @@ internal static async System.Threading.Tasks.Task<ExitCodes> UpdateFirmwareAsync
307307
308308 if ( operationResult == ExitCodes . OK )
309309 {
310- Console . ForegroundColor = ConsoleColor . White ;
310+ Console . ForegroundColor = ConsoleColor . White ;
311311
312312 if ( verbosity >= VerbosityLevel . Normal )
313313 {
0 commit comments