|
@@ -42,6 +42,8 @@ UINT32 Timer_count;//每100ms加1
|
|
|
volatile BOOL Sleep_flag = false;//睡眠标志位
|
|
|
extern UINT32 TcpService;
|
|
|
extern UINT8 BattChrgEndFlag;
|
|
|
+extern UINT8 Aoi1Event;
|
|
|
+extern UINT8 Aoi2Event;
|
|
|
AppConfigHeader AppConfigHr; //4 bytes
|
|
|
AppNVMDataType AppNVMData;
|
|
|
AppDataHeader AppDataHr;
|
|
@@ -304,6 +306,7 @@ static void MainTask(void* arg)
|
|
|
#endif
|
|
|
slpManDeepSlpTimerStart(deepslpTimerID, AppNVMData.sleepTime*1000*60);
|
|
|
UINT8 sleeptime_count=0;
|
|
|
+ RxInterprut = 0;
|
|
|
while(1)
|
|
|
{
|
|
|
if(!slpManDeepSlpTimerIsRunning(deepslpTimerID))
|
|
@@ -314,7 +317,7 @@ static void MainTask(void* arg)
|
|
|
#ifdef USING_PRINTF
|
|
|
printf("sleeptime_count :%d \n",sleeptime_count);
|
|
|
#endif
|
|
|
- if(sleeptime_count>10)
|
|
|
+ if(sleeptime_count>10||RxInterprut==1||Aoi1Event==1||Aoi2Event==1)
|
|
|
{
|
|
|
#ifdef DEBUGLOG
|
|
|
Debug_printf("405\n");
|