Skip to content

Commit 6d1e028

Browse files
authored
feat: Add support for flashing with flasher stub disabled (--no-stub) (#6)
1 parent de8c8ef commit 6d1e028

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

programmer.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,14 @@ def main():
3939
command = ['--baud', '460800',
4040
'--before', esptool_args['before'],
4141
'--after', esptool_args['after'],
42-
'--chip', esptool_args['chip'],
43-
'write_flash']
42+
'--chip', esptool_args['chip']]
43+
44+
stub = esptool_args['stub']
45+
print(f'Use flasher stub? {stub}')
46+
if not stub:
47+
command.append('--no-stub')
48+
49+
command.append('write_flash')
4450

4551
write_flash_args = flasher_args['write_flash_args']
4652
# oddly, write_flash_args is a list (whereas everything else is a dict), so

0 commit comments

Comments
 (0)