更新isNeedRestore 判断逻辑

This commit is contained in:
CSSC-WORK\murmur 2023-09-10 17:20:43 +08:00
parent ff29dd3106
commit 3b482fc40f

View File

@ -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;
}