dont do this when powered by nfc
This commit is contained in:
@@ -265,11 +265,13 @@ bool ams_init()
|
|||||||
LL_SPI_SetRxFIFOThreshold(SPI1,LL_SPI_RX_FIFO_TH_QUARTER);
|
LL_SPI_SetRxFIFOThreshold(SPI1,LL_SPI_RX_FIFO_TH_QUARTER);
|
||||||
LL_SPI_Enable(SPI1);
|
LL_SPI_Enable(SPI1);
|
||||||
|
|
||||||
delay(10);
|
// delay(10);
|
||||||
SELECT();
|
SELECT();
|
||||||
delay(10);
|
// delay(10);
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
if (1)
|
||||||
|
{
|
||||||
ams_write_command(AMS_CMD_DEFAULT);
|
ams_write_command(AMS_CMD_DEFAULT);
|
||||||
ams_write_command(AMS_CMD_CLEAR_BUFFER);
|
ams_write_command(AMS_CMD_CLEAR_BUFFER);
|
||||||
|
|
||||||
@@ -342,6 +344,7 @@ bool ams_init()
|
|||||||
ams_read_eeprom_block(0x7F, block);
|
ams_read_eeprom_block(0x7F, block);
|
||||||
printf1(TAG_NFC,"conf1: "); dump_hex1(TAG_NFC,block,4);
|
printf1(TAG_NFC,"conf1: "); dump_hex1(TAG_NFC,block,4);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user