From 3b482fc40f93e69e86d7f3b78e3cbf8d894acd86 Mon Sep 17 00:00:00 2001 From: "CSSC-WORK\\murmur" Date: Sun, 10 Sep 2023 17:20:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0isNeedRestore=20=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/func/func.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/applications/func/func.c b/applications/func/func.c index c97368f..c7962ef 100644 --- a/applications/func/func.c +++ b/applications/func/func.c @@ -1798,9 +1798,12 @@ void setWorkSta(int flag) int isNeedRestore(void) { int rst = get_cfg("isWorking"); - if (rst) { + if (rst > 0) { LOG_W("restoring TT after crash"); } + else { + rst = 0; + } return rst; }