#include <proxmark3.h>\r
#include "apps.h"\r
#include "hitag2.h"\r
-#include "../common/crc16.c"\r
+#include "crc16.h"\r
\r
void AcquireRawAdcSamples125k(BOOL at134khz)\r
{\r
DbpString("Now use tiread to check");\r
}\r
\r
-void SimulateTagLowFrequency(int period, int ledcontrol)\r
+void SimulateTagLowFrequency(int period, int gap, int ledcontrol)\r
{\r
int i;\r
BYTE *tab = (BYTE *)BigBuf;\r
}\r
\r
i++;\r
- if(i == period) i = 0;\r
+ if(i == period) {\r
+ i = 0;\r
+ if (gap) { \r
+ SHORT_COIL();\r
+ SpinDelayUs(gap);\r
+ }\r
+ }\r
}\r
}\r
\r
\r
if (ledcontrol)\r
LED_A_ON();\r
- SimulateTagLowFrequency(n, ledcontrol);\r
+ SimulateTagLowFrequency(n, 0, ledcontrol);\r
\r
if (ledcontrol)\r
LED_A_OFF();\r