diff --git a/tools/espota.py b/tools/espota.py index 8abdffb3..f982376d 100755 --- a/tools/espota.py +++ b/tools/espota.py @@ -205,7 +205,7 @@ def serve(remoteAddr, localAddr, remotePort, localPort, password, filename, comm data = connection.recv(32).decode() logging.info('Result: %s' ,data) - if data == "OK": + if "OK" in data: logging.info('Success') connection.close() f.close()