- added general binary scriptcontext protocoll
- improved some drivers
This commit is contained in:
2
modbus.c
2
modbus.c
@@ -141,7 +141,7 @@ static int calc_crc(char *inp, int inpLen, int addCrc)
|
||||
|
||||
/* CRC runs cyclic Redundancy Check Algorithm on input inp */
|
||||
/* Returns value of 16 bit CRC after completion and */
|
||||
/* always adds 2 crc bytes to message */
|
||||
/* adds 2 crc bytes if addCrc is not 0 */
|
||||
/* returns 0 if incoming message has correct CRC */
|
||||
|
||||
unsigned int crc = 0xffff;
|
||||
|
||||
Reference in New Issue
Block a user