From 99780f1bf9da1e05d022a6b04b8e6081e9f7884b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=85=89-k?= <36470587+kxgx@users.noreply.github.com> Date: Sun, 19 Jan 2025 10:35:23 +0800 Subject: [PATCH] Update main.py --- bin/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/main.py b/bin/main.py index 0bcfcc9..cc8e083 100644 --- a/bin/main.py +++ b/bin/main.py @@ -263,7 +263,6 @@ def Partial_refresh():#局刷函数 '''内存百分比显示''' retry_interval = 180 # 设置重试间隔时间(秒) - while True: try: ##################屏幕初始化######################### @@ -280,6 +279,7 @@ while True: epd.init() epd.Clear(0xFF) epd.sleep() + time.sleep(300) break # 如果脚本执行成功,则退出循环 except (OSError, Exception) as e: # 捕获你提到的异常 logging.error("发生了错误: %s", e)