diff --git a/uart/uart.cpp b/uart/uart.cpp index 95ff833..52ab60d 100644 --- a/uart/uart.cpp +++ b/uart/uart.cpp @@ -449,7 +449,7 @@ int Uart::DealWaveCompress(const char *pData,uint16_t ushortAdd){ sprintf(errorInfo, "No RSSI %s", sensor_rssi); zlog_error(zct, errorInfo); } else { - char tableName[100] = {0x00}; + char tableName[100] = {0x00}; char whereCon[100] = {0}; char updateSql[100] = {0}; sprintf(whereCon, "zigbeeShortAddr='%02x%02x'", UINT16_HIGH(ushortAdd),UINT16_LOW(ushortAdd)); diff --git a/uart/uart_parameter_config.cpp b/uart/uart_parameter_config.cpp index f579201..576072e 100644 --- a/uart/uart_parameter_config.cpp +++ b/uart/uart_parameter_config.cpp @@ -633,7 +633,7 @@ int Uart::WaveResp(uint16_t shortAddr){ sendData[2] = 0xAA; sendData[3] = (shortAddr >> 8) & 0xFF; sendData[4] = shortAddr & 0xFF; - sendData[5] = 0x11; + sendData[5] = 0x12; sendData[6] = 0x00; unsigned char tmp = 0x00; for (int k = 0; k < 7; k++) {