debug DG102

This commit is contained in:
zhangsheng 2024-11-20 20:53:15 +08:00
parent 8a947977f5
commit c680978701
3 changed files with 1 additions and 2 deletions

BIN
Cidn-SH

Binary file not shown.

View File

@ -145,7 +145,6 @@ void Uart::WritePanId2Zigbee(unsigned short pad) {
zlog_info(zct, "WritePanId2Zigbee : %d", pad); zlog_info(zct, "WritePanId2Zigbee : %d", pad);
unsigned short pad1 = pad, tmp; unsigned short pad1 = pad, tmp;
tmp = GlobalConfig::Zigbee_G.MyAddr; tmp = GlobalConfig::Zigbee_G.MyAddr;
zlog_info(zct, "MyAddr : %d", GlobalConfig::Zigbee_G.MyAddr);
swap((char *)&pad1); swap((char *)&pad1);
GlobalConfig::Zigbee_G.PanID = pad1; GlobalConfig::Zigbee_G.PanID = pad1;
modify_info(tmp, (char *)&GlobalConfig::Zigbee_G); modify_info(tmp, (char *)&GlobalConfig::Zigbee_G);

View File

@ -687,7 +687,7 @@ std::vector<float> Uart::DealData(int iChannel, float coe, unsigned int sampleRa
} }
zlog_info(zct, "len = %d,data = %02x,iChannel = %d,compress = %d,count = %d", j, data[0], iChannel, compress, count); zlog_info(zct, "len = %d,data = %02x,iChannel = %d,compress = %d,count = %d", j, data[0], iChannel, compress, count);
if (j * 92 < count) return vecData; if (j * 92 < count) return vecData;
if (compress) { if (compress) {
zlog_info(zct, "iChannel = %d,compress = %d", iChannel, compress); zlog_info(zct, "iChannel = %d,compress = %d", iChannel, compress);
int r = lzo1x_decompress(data, count, outdata, &new_len, NULL); int r = lzo1x_decompress(data, count, outdata, &new_len, NULL);