OTA don't error when upgrading from no password to password mode (#309)

This commit is contained in:
Otto Winter 2019-01-08 12:51:26 +01:00
parent 33b67de32e
commit 605be1a6ec
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -187,9 +187,6 @@ def perform_ota(sock, password, file_handle, filename):
send_check(sock, result, 'auth result')
receive_exactly(sock, 1, 'auth result', RESPONSE_AUTH_OK)
else:
if password:
raise OTAError("Password specified, but ESP doesn't accept password!")
file_size_encoded = [
(file_size >> 24) & 0xFF,