Add verbose mode for espota

This commit is contained in:
Otto Winter 2018-06-06 11:12:42 +02:00
parent 19dfdb77eb
commit 30b94f06b3
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -208,6 +208,8 @@ def upload_program(config, args, port):
espota_args = ['espota.py', '--debug', '--progress', '-i', host, espota_args = ['espota.py', '--debug', '--progress', '-i', host,
'-p', str(ota.get_port(config)), '-f', bin_file, '-p', str(ota.get_port(config)), '-f', bin_file,
'-a', ota.get_auth(config), '-P', str(host_port)] '-a', ota.get_auth(config), '-P', str(host_port)]
if args.verbose:
espota_args.append('-d')
return espota.main(espota_args) return espota.main(espota_args)