Skip to content

Commit

Permalink
Delay between repeats
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyweiss committed May 10, 2024
1 parent 08781c7 commit a52d025
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helpers/mag_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#define ZERO_PREFIX 25 // n zeros prefix
#define ZERO_BETWEEN 53 // n zeros between tracks
#define ZERO_SUFFIX 25 // n zeros suffix
#define REPEAT_DELAY_MS 50

// bits per char on a given track
const uint8_t bitlen[] = {7, 5, 5};
Expand Down Expand Up @@ -371,6 +372,8 @@ void mag_spoof(Mag* mag) {
i++;
FURI_LOG_D(
TAG, "TX %u (n_repeats: %u, repeat_mode: %u)", i, state->n_repeats, state->repeat_mode);
furi_delay_ms(REPEAT_DELAY_MS);

} while((i < state->n_repeats) && state->repeat_mode);

free(data1);
Expand Down

0 comments on commit a52d025

Please sign in to comment.