debug DG102
This commit is contained in:
parent
8a947977f5
commit
c680978701
@ -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);
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user