@@ -46,7 +46,7 @@ extern "C" {
#define DRVSWVERSION 0x01050000 //驱动层版本号V1.4.0.0 驱动层1.5.0.0,增加了三轴
//#define APPSWVERSION 0x01020209
//#define APPSWVERSION 0x02000103
-#define APPSWVERSION 0x02010004
+#define APPSWVERSION 0x02010005
//--------------------------------------------------------------------------------
#define APP_CONFIG_FILE_LATEST_VERSION 0
@@ -32,6 +32,7 @@
//全局变量区输入
extern volatile BOOL Sleep_flag;
extern AppDataBody AppDataInfo;
+extern UINT8 WorkFlag;
//全局变量区输出
UINT8 GpsData[16];
osMutexId_t GpsMutex = NULL;
@@ -121,7 +122,7 @@ static void GpsTask(void* arg)
GpsData[2] = 0xff;
GpsData[3] = 0xfe;
}
- if(speedtemp>=30 && speedtemp<=1500)
+ if(speedtemp>=30 && speedtemp<=1500 && WorkFlag==0x01)
{
AppDataInfo.appDataModify = true;
AppDataInfo.AccMileage = speedtemp/36 + AppDataInfo.AccMileage;
@@ -33,6 +33,7 @@
#include "Signal.h"
//全局变量输出区
UINT32 TcpService = 0;
+UINT8 WorkFlag=0;
//全局变量输入区
extern UINT32 Timer_count;
@@ -251,7 +252,6 @@ static void TcpDataInfoAssembleSend()
UINT16 year;
UINT8 month,day,hour,minute,sec;
UTC8TimeType UTC8TimeTcp;
- static UINT8 WorkFlag=0;
int i = 0;
INT8 len = -1;
WorkState = battWorkState;