@@ -29,7 +29,7 @@ def __init__(
29
29
port : Optional [str ] = None ,
30
30
baud : int = EspSerial .DEFAULT_BAUDRATE ,
31
31
skip_autoflash : bool = False ,
32
- erase_flash : bool = False ,
32
+ erase_all : bool = False ,
33
33
port_app_cache : Dict [str , str ] = None ,
34
34
confirm_target_elf_sha256 : bool = False ,
35
35
erase_nvs : bool = False ,
@@ -46,7 +46,7 @@ def __init__(
46
46
if target and self .app .target and self .app .target != target :
47
47
raise ValueError (f'Targets do not match. App target: { self .app .target } , Cmd target: { target } .' )
48
48
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 )
50
50
51
51
def _post_init (self ):
52
52
if self .esp .serial_port in self ._port_app_cache :
@@ -130,7 +130,7 @@ def __init__(self, attributes):
130
130
if self .ESPTOOL_VERSION == EsptoolVersion .V4 :
131
131
default_kwargs ['force' ] = False
132
132
133
- if self .erase_flash :
133
+ if self .erase_all :
134
134
default_kwargs ['erase_all' ] = True
135
135
136
136
default_kwargs .update (self .app .flash_settings )
0 commit comments