Commit 226d9d1e authored by 张泽仁's avatar 张泽仁

release version modefy crc low byte high byte order

parent 761f22b0
......@@ -169,8 +169,8 @@ void sentMessageAngle(int fileuart, uint16_t angle) //changed
uint16_t crc;
crc = CrcValueCalc(messageAngle, 11);
messageAngle[11] = (crc >> 8) & 0xff;
messageAngle[12] = crc & 0xff;
messageAngle[11] = crc & 0xff;
messageAngle[12] = (crc >> 8) & 0xff;
write(fileuart, messageAngle, 11);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment