/trunk/makefile |
---|
7,11 → 7,11 |
BOARD = 11 |
VERSION_MAJOR = 0 |
VERSION_MINOR = 21 |
VERSION_PATCH = 2 |
VERSION_PATCH = 3 |
VERSION_SERIAL_MAJOR = 10 # Serial Protocol Major Version |
VERSION_SERIAL_MINOR = 0 # Serial Protocol Minor Version |
NC_I2C_COMPATIBLE = 2 # I2C Protocol Version |
NC_I2C_COMPATIBLE = 3 # I2C Protocol Version |
#------------------------------------------------------------------- |
# get SVN revision |
/trunk/twislave.c |
---|
213,6 → 213,7 |
} |
else if (Rx_Idx == I2C_RxBufferSize) // crc byte was transfered |
{ // if checksum matched |
crc = ~crc; //flip all bits inthe checksum |
if(crc == data) |
{ // and RxBuffer exist |
if(I2C_RxBuffer != 0) |
264,7 → 265,7 |
} |
else if (Tx_Idx == I2C_TxBufferSize) |
{ // send crc byte at the end |
data = crc; |
data = ~crc; |
} |
else |
{ |