aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKing Kévin <kingkevin@cuvoodoo.info>2015-11-11 10:09:39 +0100
committerKing Kévin <kingkevin@cuvoodoo.info>2015-11-11 10:09:39 +0100
commit2924e77619e25955226579a0254a0e5c212677a5 (patch)
tree808eb9136221f1594a7bb897aafe7a6d0c7a6d1a
parentcf0df8b102806c4087814b895601321a32026e54 (diff)
add info message
-rw-r--r--rpi/spark_counter_receiver.cpp6
1 files 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(&ltime));
- 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