|
@@ -357,7 +357,7 @@ int PL1167_nRF24::internal_receive()
|
|
|
uint16_t crc = calc_crc(tmp, outp - 2);
|
|
uint16_t crc = calc_crc(tmp, outp - 2);
|
|
|
if ( ((crc & 0xff) != tmp[outp - 2]) || (((crc >> 8) & 0xff) != tmp[outp - 1]) ) {
|
|
if ( ((crc & 0xff) != tmp[outp - 2]) || (((crc >> 8) & 0xff) != tmp[outp - 1]) ) {
|
|
|
#ifdef DEBUG_PRINTF
|
|
#ifdef DEBUG_PRINTF
|
|
|
- printf("Failed CRC: expected %d, got %d (%d,%d)\n", crc, tmp[outp-2], tmp[outp-1]);
|
|
|
|
|
|
|
+ printf("Failed CRC: expected %d, got (%d,%d)\n", crc, tmp[outp-2], tmp[outp-1]);
|
|
|
#endif
|
|
#endif
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|