- int byte_index = 0, cmd_sz = 0, card_sz = 0;
-
- if ( MF_DBGLEVEL >= 2) {
- Dbprintf("setting up legic card, IV = %x", iv);
- Dbprintf("ONE %d ZERO %d PAUSE %d", RWD_TIME_1 , RWD_TIME_0 , RWD_TIME_PAUSE);
- Dbprintf("TAG BIT PERIOD %d FUZZ %d TAG WAIT TIME %d", TAG_BIT_PERIOD, RWD_TIME_FUZZ, TAG_TIME_WAIT);
-
- // StartCountUS();
- // for ( uint8_t i =0; i<255; ++i){
- // uint32_t t1 = GET_COUNT_US;
- // WAIT(i)
- // t1 = GET_COUNT_US - t1;
- // Dbprintf("WAIT(%d) == %u | %u | diff %d", i, t1-i );
- // }
- }
+ uint16_t byte_index = 0;
+ uint8_t cmd_sz = 0;
+ int card_sz = 0;
+
+ if ( MF_DBGLEVEL >= 2)
+ Dbprintf("setting up legic card, IV = 0x%03.3x", iv);