From 25fd2d0f3b4e9b5995af423317ffd2cb905c4273 Mon Sep 17 00:00:00 2001 From: petefats Date: Sun, 16 Dec 2018 05:00:15 -0700 Subject: [PATCH] OTA success reporting fix (#2202) --- tools/espota.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()