数据处理不对 比如这里:bit.lshift(tonumber(msb,16),12) + bit.lshift(tonumber(lsb,16),4) + bit.rshift(tonumber(xlsb,16),4) 你可能是照着c代码写的:temp = (long)(((unsigned long)msb << 12)|((unsigned long)lsb << 4)|((unsigned long)xlsb >> 4)); 应该改成这样(其他部分也自己照着改吧)...
回答于 2019-03-29 16:36