You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (sync_cycles <= 0) sync_cycles+=PRNG_SEQUENCE_LENGTH;
2460
+
2461
+
// reset sync_cycles
2462
+
if (sync_cycles>PRNG_SEQUENCE_LENGTH*2 ) {
2463
+
sync_cycles=PRNG_SEQUENCE_LENGTH;
2464
+
sync_time=GetCountSspClk() &0xfffffff8;
2465
+
}
2460
2466
2461
2467
if (MF_DBGLEVEL >= 4)
2462
2468
Dbprintf("calibrating in cycle %d. nt_distance=%d, elapsed_prng_sequences=%d, new sync_cycles: %d\n", i, nt_distance, elapsed_prng_sequences, sync_cycles);
2463
2469
2470
+
LED_B_OFF();
2464
2471
continue;
2465
2472
}
2466
2473
}
2474
+
LED_B_OFF();
2467
2475
2468
2476
if ( (nt!=nt_attacked) &&nt_attacked) { // we somehow lost sync. Try to catch up again...
0 commit comments