fix: 多项修复优化
1. 24h周期注册改为系统定时重启(SystemReset),移除RepeLoginCount 2. ADC连续采样改为单次采样,每次读完后重新触发Adc_SGL_Start 3. GWRevHandler/InRevHandler memcmp返回值修正 != false → != 0 4. APP_STATUS_WAIT_UPLOAD上传成功后UploadOk清零 5. UartDebug: DEBUG_CMD_CNT 16→17
This commit is contained in:
+2
-3
@@ -1,4 +1,4 @@
|
||||
#ifndef __MAIN_H
|
||||
#ifndef __MAIN_H
|
||||
#define __MAIN_H
|
||||
#include "bsp.h"
|
||||
#include "UartDebug.h"
|
||||
@@ -17,7 +17,7 @@
|
||||
#define Z 2
|
||||
#define XYZ 3
|
||||
|
||||
#define SYSTEM_TIMING_LOGIN (86400 / 30) //系统定时注册时间(一天86400秒)
|
||||
#define SYSTEM_TIMING_RESET (86400 / 30) //系统定时重启时间(一天86400秒)
|
||||
#define ERR_TIMING_LOGIN (1800 / 30) //注册错误重新注册时间(半个小时1800秒)
|
||||
|
||||
#define TEST_TIME (60*60*1000)
|
||||
@@ -77,7 +77,6 @@ typedef struct {
|
||||
AHRSData_T AHRSData;
|
||||
ConvertedData_T ConvertedData;
|
||||
|
||||
uint32_t RepeLoginCount; //24h重复注册计数
|
||||
uint8_t Login30MinCount; //注册30分定时计数
|
||||
uint8_t Login2Min30SCount; //注册100ms~2分+30s定时计数
|
||||
bool Login_RTC; //注册30分定时器启动标志位
|
||||
|
||||
Reference in New Issue
Block a user