diff --git a/uart/uart_feature_parse.cpp b/uart/uart_feature_parse.cpp index a9eaf85..e33fd08 100644 --- a/uart/uart_feature_parse.cpp +++ b/uart/uart_feature_parse.cpp @@ -922,8 +922,7 @@ void Uart::WriteDatFile(int sampleRate, std::string &strMeasurementID, int iChan id = id + strlen(buf); strncpy(mqttData + id,",",1); id = id + 1; - } - else{ + }else{ strncpy(mqttData + id ,buf,strlen(buf)); } } diff --git a/uart/uart_parameter_config.cpp b/uart/uart_parameter_config.cpp index 1ffb29a..73dd203 100644 --- a/uart/uart_parameter_config.cpp +++ b/uart/uart_parameter_config.cpp @@ -8,6 +8,7 @@ #include #include #include "common/common_func.hpp" +#include "minilzo/minilzo.h" extern zlog_category_t* zct; extern zlog_category_t* zbt; @@ -83,7 +84,7 @@ bool Uart::ReadUpdatePackge(unsigned short shortAdd) { fread(buffer, sizeof(char), thisSize, pFile); fclose(pFile); } - + int r = lzo1x_1_compress(data, count, outdata, &new_len, NULL); unsigned char Data[12] = {0x00}; unsigned char size[4] = {0x00}; zlog_info(zct, "thisSize = %d", thisSize);