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