hitag: comment debug messages in critical loop

This commit is contained in:
Philippe Teuwen 2020-01-15 23:26:02 +01:00
commit 3d95590fc9

View file

@ -1450,7 +1450,7 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) {
} else { } else {
// The function lf_count_edge_periods() returns 0 when a time-out occurs // The function lf_count_edge_periods() returns 0 when a time-out occurs
if (periods == 0) { if (periods == 0) {
Dbprintf("Detected timeout after [%d] nrz samples", nrzs); //Dbprintf("Detected timeout after [%d] nrz samples", nrzs);
break; break;
} }
} }
@ -1470,7 +1470,7 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) {
tag_modulation ^= 1; tag_modulation ^= 1;
} else { } else {
// The function lf_count_edge_periods() returns > 64 periods, this is not a valid number periods // The function lf_count_edge_periods() returns > 64 periods, this is not a valid number periods
Dbprintf("Detected unexpected period count: %d", periods); //Dbprintf("Detected unexpected period count: %d", periods);
break; break;
} }
} }
@ -1510,7 +1510,7 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) {
// Verify if the header consists of five consecutive ones // Verify if the header consists of five consecutive ones
if (nrzs < 5) { if (nrzs < 5) {
Dbprintf("Detected unexpected number of manchester decoded samples [%d]", nrzs); //Dbprintf("Detected unexpected number of manchester decoded samples [%d]", nrzs);
break; break;
} else { } else {
for (size_t i = 0; i < 5; i++) { for (size_t i = 0; i < 5; i++) {