@@ -29,7 +29,7 @@ def __init__(
2929 port : Optional [str ] = None ,
3030 baud : int = EspSerial .DEFAULT_BAUDRATE ,
3131 skip_autoflash : bool = False ,
32- erase_flash : bool = False ,
32+ erase_all : bool = False ,
3333 port_app_cache : Dict [str , str ] = None ,
3434 confirm_target_elf_sha256 : bool = False ,
3535 erase_nvs : bool = False ,
@@ -46,7 +46,7 @@ def __init__(
4646 if target and self .app .target and self .app .target != target :
4747 raise ValueError (f'Targets do not match. App target: { self .app .target } , Cmd target: { target } .' )
4848
49- super ().__init__ (pexpect_proc , target or app .target , port , baud , skip_autoflash , erase_flash , ** kwargs )
49+ super ().__init__ (pexpect_proc , target or app .target , port , baud , skip_autoflash , erase_all , ** kwargs )
5050
5151 def _post_init (self ):
5252 if self .esp .serial_port in self ._port_app_cache :
@@ -130,7 +130,7 @@ def __init__(self, attributes):
130130 if self .ESPTOOL_VERSION == EsptoolVersion .V4 :
131131 default_kwargs ['force' ] = False
132132
133- if self .erase_flash :
133+ if self .erase_all :
134134 default_kwargs ['erase_all' ] = True
135135
136136 default_kwargs .update (self .app .flash_settings )
0 commit comments