Dear all,
Why am i keep getting this error by using return function in my coding?
can anyone explain and help me further on this CRC checksum coding ?
Your early reply is much appreciated.
Thank you.
Hi Joonsin,
you cannot return a value in a function which has a return type of 'void'.
So instead
void crc16(void) {
you have to write
int crc16(void) {
And the AS1_SencChar() after the return does not make any sense.
All these are basic C programming points.
I hope this helps,
Erich