add codes
This commit is contained in:
parent
48eb60ed26
commit
466cbdaca0
1
main.cpp
1
main.cpp
@ -43,6 +43,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
zlog_info(zbt, " Firmware compile time:%s %s,version %s", __DATE__, __TIME__, GlobalConfig::Version.c_str());
|
||||
zlog_info(zbt, "####CIDNSOFT start####");
|
||||
GlobalConfig::Version += " " + std::string(__DATE__) ;
|
||||
|
||||
g_VecWaveDataX.reserve(1000);
|
||||
g_VecWaveDataY.reserve(1000);
|
||||
|
||||
@ -155,7 +155,12 @@ int Uart::DealDataNodeFeature(const char *pData, int flag) {
|
||||
sprintf(logInfo, "ShortAddr = %s,localtimestamp = %s,staticData = %d, data = %d", strShortAddr.c_str(), localtimestamp, count, count2);
|
||||
zlog_info(zct, logInfo);
|
||||
std::vector<uint8_t>& data_vec = map_send_data[u_short_addr];
|
||||
|
||||
const uint8_t* send_data = data_vec.data();
|
||||
if (send_data == nullptr || data_vec.size() < 100) {
|
||||
zlog_error(zct, "send_data is null or size is less than 100");
|
||||
return -3;
|
||||
}
|
||||
WriteToUart((const char*)send_data, 100);
|
||||
mssleep(50000);
|
||||
WriteToUart((const char*)send_data, 100);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user