From: iceman1001 Date: Wed, 19 Oct 2016 17:59:58 +0000 (+0200) Subject: FIX: "lf sim" after changes to ticks timers on device side, there was a "starticks... X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/4460be68c36b9545a493d4e4479cd0bb14a576cd?ds=sidebyside;hp=--cc FIX: "lf sim" after changes to ticks timers on device side, there was a "starticks" call missing, which lead to not having any timers which is a problem for the WaitUS call. --- 4460be68c36b9545a493d4e4479cd0bb14a576cd diff --git a/armsrc/lfops.c b/armsrc/lfops.c index c80700ae..642b1937 100644 --- a/armsrc/lfops.c +++ b/armsrc/lfops.c @@ -393,6 +393,8 @@ void SimulateTagLowFrequency(int period, int gap, int ledcontrol) int i = 0; uint8_t *tab = BigBuf_get_addr(); + StartTicks(); + FpgaWriteConfWord(FPGA_MAJOR_MODE_LF_EDGE_DETECT | FPGA_LF_EDGE_DETECT_READER_FIELD); AT91C_BASE_PIOA->PIO_PER = GPIO_SSC_DOUT | GPIO_SSC_CLK;