From 891127d2368f9165173d18d8682831db2780e309 Mon Sep 17 00:00:00 2001 From: zhangsheng Date: Mon, 9 Dec 2024 17:18:40 +0800 Subject: [PATCH] fix memory bug,version 5.1 --- common/global.hpp | 2 +- uart/uart_parameter_config.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/global.hpp b/common/global.hpp index ac03d9a..2ff7763 100644 --- a/common/global.hpp +++ b/common/global.hpp @@ -18,7 +18,7 @@ enum enumZigBeeTransmitStatus { //#define NR5G_MODULE -//#define Q4G_MODULE +#define Q4G_MODULE //#define WIFI_MODULE //#define NR5G_MEIGE diff --git a/uart/uart_parameter_config.cpp b/uart/uart_parameter_config.cpp index d96d92b..a2c0f09 100644 --- a/uart/uart_parameter_config.cpp +++ b/uart/uart_parameter_config.cpp @@ -49,7 +49,7 @@ void Uart::UpdateWirelessNode(uint16_t shortAdd) { char localtimestamp[32] = {0}; GetTimeNet(localtimestamp, 1); char insertSql[100] = {0}; - char wherecon[64] = {0}; + char wherecon[100] = {0}; sprintf(wherecon," short_Addr = '%02x%02x' and status = 3 order by start_timestamp DESC",UINT16_HIGH(shortAdd), UINT16_LOW(shortAdd)); std::string spend_count = sqlite_db_ctrl::instance().GetData(" firmware_upgrade ","spend_count",wherecon); if (atoi(spend_count.c_str()) >= 10){