修复isFileMode的逻辑bug
This commit is contained in:
parent
103e096122
commit
ec50a45884
@ -279,7 +279,6 @@ void timerIsReady(void)
|
||||
void fileIsReady(void)
|
||||
{
|
||||
rt_event_send(&chkSta, FILE_IS_OK);
|
||||
isFileMode = 1;
|
||||
stopTM();
|
||||
}
|
||||
void TTIsReady(void)
|
||||
@ -723,11 +722,13 @@ void deInitTT_thread_entry()
|
||||
clearWindowMode();
|
||||
setManualWindow(-1);
|
||||
setWorkSta(0);
|
||||
isFileMode=0;
|
||||
LOG_W("shunt down TT DONE");
|
||||
}
|
||||
// initThread = RT_NULL;
|
||||
|
||||
deinitThread = RT_NULL;
|
||||
pwTT_thread_entry("0");
|
||||
// list_thread();
|
||||
}
|
||||
|
||||
@ -743,6 +744,7 @@ void initTT()
|
||||
}
|
||||
set3SRTC();
|
||||
setWorkSta(1);
|
||||
isFileMode=1;
|
||||
initThread = rt_thread_create("initTT", initTT_thread_entry, RT_NULL, 1024 * 5, 25, 10);
|
||||
/* 创建成功则启动线程 */
|
||||
if (initThread != RT_NULL)
|
||||
|
@ -57,8 +57,6 @@ typedef struct
|
||||
uint8_t locAlert;
|
||||
uint8_t locRepInterval;
|
||||
int8_t isMaWin;
|
||||
uint8_t wljd[40];//围栏jd,支持15个点
|
||||
uint8_t wlwd[40];//围栏wd
|
||||
|
||||
} SYS_CFG;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user