Closed hfudev closed 9 months ago
For now we're calling internal esptool functions while flash. Research if we could
flash
get target
esp: esptool.ESPLoader = esptool.get_default_connected_device( ports, port=port, connect_attempts=3, initial_baud=baud, chip=esptool_target, )
call esptool.main(*args, esp=esp) to use esptool cli functions
esptool.main(*args, esp=esp)
Besides, the subprocess call of esptool existing elsewhere could also be replaced by esptool.main
subprocess
esptool.main
For now we're calling internal esptool functions while
flash
. Research if we couldget target
call
esptool.main(*args, esp=esp)
to use esptool cli functionsBesides, the
subprocess
call of esptool existing elsewhere could also be replaced byesptool.main