From 0e325e531423dd5b3515aa712edc673cd09a0494 Mon Sep 17 00:00:00 2001 From: zhangsheng Date: Tue, 6 May 2025 11:29:38 +0800 Subject: [PATCH] add code --- common/global.hpp | 2 +- platform/platform_init.cpp | 2 +- scheduler/schedule.cpp | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/common/global.hpp b/common/global.hpp index 23116d6..33d595f 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/platform/platform_init.cpp b/platform/platform_init.cpp index f408a14..ee9f173 100644 --- a/platform/platform_init.cpp +++ b/platform/platform_init.cpp @@ -14,7 +14,7 @@ int GlobalConfig::LinkStatus_G = 0; int GlobalConfig::LinkCount = 0; int GlobalConfig::net0Status = 1; -std::string GlobalConfig::Version = "5.6"; +std::string GlobalConfig::Version = "5.6.1"; std::string GlobalConfig::MacAddr_G = ""; std::string GlobalConfig::MacAddr_G2 = ""; std::string GlobalConfig::IpAddr_G = ""; diff --git a/scheduler/schedule.cpp b/scheduler/schedule.cpp index ac302b3..30efd09 100644 --- a/scheduler/schedule.cpp +++ b/scheduler/schedule.cpp @@ -299,7 +299,11 @@ int SensorScheduler::GetNextDuration(int short_addr) { if (duration < 0 || duration > eigen_value_send_interval_) { zlog_warn(zct, "[Nxt] exception duration: %d", duration); duration = eigen_value_send_interval_; + }else if (duration < 9){ + zlog_warn(zct, "[Nxt] exception duration: %d", duration); + duration = 10; } + zlog_warn(zct, "[Nxt] [%d:%x] next duration is %d", id, short_addr, duration); return duration; }