Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions python/binary_configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ def upload_wifi(args, mcuType, upload_addr):
with open(args.file.name, 'rb') as f_in:
with gzip.open('firmware.bin.gz', 'wb') as f_out:
shutil.copyfileobj(f_in, f_out)
upload_via_esp8266_backpack.do_upload('firmware.bin.gz', upload_addr, False, {})
upload_via_esp8266_backpack.do_upload('firmware.bin.gz', upload_addr, {})
else:
upload_via_esp8266_backpack.do_upload(args.file.name, upload_addr, False, {})
except:
upload_via_esp8266_backpack.do_upload(args.file.name, upload_addr, {})
except Exception as e:
print("WIFI upload failed: %s" % e, file=sys.stderr)
return ElrsUploadResult.ErrorGeneral
return ElrsUploadResult.Success

Expand Down
2 changes: 1 addition & 1 deletion python/upload_via_esp8266_backpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def do_upload(elrs_bin_target, upload_addr, env):
upload_addr = [upload_port]

for addr in upload_addr:
addr = "http://%s/%s" % (addr, ['update', 'upload'])
addr = "http://%s/update" % (addr,)
print(" ** UPLOADING TO: %s" % addr)
try:
if bootloader_target is not None:
Expand Down
Loading