From 9ac576d57b49b82e49b6bba0ac31fab50bf64834 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Tue, 5 Dec 2023 18:38:15 +0800 Subject: [PATCH] update --- MQTT.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MQTT.py b/MQTT.py index 04480d3..18ba250 100644 --- a/MQTT.py +++ b/MQTT.py @@ -63,7 +63,7 @@ if __name__ == '__main__': client.loop_forever() except: time.sleep(30) - if times != 0: - times -= 1 + if times == 0: # 重启机器 exec_shutdown() + times -= 1