diff --git a/armsrc/hitag2.c b/armsrc/hitag2.c index 158ffa095..0e56918a5 100644 --- a/armsrc/hitag2.c +++ b/armsrc/hitag2.c @@ -1326,6 +1326,7 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) { } LED_D_ON(); + hitag2_init(); // init as reader diff --git a/armsrc/lfadc.c b/armsrc/lfadc.c index eaaa38631..3e15fdc0b 100644 --- a/armsrc/lfadc.c +++ b/armsrc/lfadc.c @@ -155,7 +155,11 @@ void lf_init(bool reader) { FpgaSetupSsc(); // When in reader mode, give the field a bit of time to settle. - if (reader) SpinDelay(50); + // 313T0 = 313 * 8us = 2504us = 2.5ms Hitag2 tags needs to be fully powered. + if (reader) { + // 50 ms + SpinDelay(50); + } // Steal this pin from the SSP (SPI communication channel with fpga) and use it to control the modulation AT91C_BASE_PIOA->PIO_PER = GPIO_SSC_DOUT;