From 2924e77619e25955226579a0254a0e5c212677a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Wed, 11 Nov 2015 10:09:39 +0100 Subject: [PATCH] add info message --- rpi/spark_counter_receiver.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rpi/spark_counter_receiver.cpp b/rpi/spark_counter_receiver.cpp index 7c6939b..c805f3e 100644 --- a/rpi/spark_counter_receiver.cpp +++ b/rpi/spark_counter_receiver.cpp @@ -88,7 +88,7 @@ int main(int argc, char** argv){ ltime=time(NULL); // get current cal time char stime[64]; // do display the time strftime(stime, sizeof(stime), "%F %T %z %Z", localtime(<ime)); - printf("%s: payload received\n",stime); + printf("%s: payload received over radio\n",stime); uint8_t payload[32]; // buffer to save the payload uint8_t size = radio.getDynamicPayloadSize(); radio.read(&payload,size); @@ -142,9 +142,7 @@ int main(int argc, char** argv){ } crc = _crc_ibutton_update(crc, payload[17]); // this is the CRC if (crc) { // wrong key or IV -#ifdef DEBUG - printf("wrong CRC: expected %d, got %d\n",payload[17],crc); -#endif + printf("wrong CRC. saving IV for next packet\n"); continue; } uint8_t invalid[sizeof(values)]; // used to indicate that the values are invalid