dont do this when powered by nfc

This commit is contained in:
Conor Patrick
2019-02-02 00:21:26 -05:00
parent b7bc50bc4f
commit c3bddee814

View File

@@ -265,11 +265,13 @@ bool ams_init()
LL_SPI_SetRxFIFOThreshold(SPI1,LL_SPI_RX_FIFO_TH_QUARTER);
LL_SPI_Enable(SPI1);
delay(10);
// delay(10);
SELECT();
delay(10);
// delay(10);
//
if (1)
{
ams_write_command(AMS_CMD_DEFAULT);
ams_write_command(AMS_CMD_CLEAR_BUFFER);
@@ -342,6 +344,7 @@ bool ams_init()
ams_read_eeprom_block(0x7F, block);
printf1(TAG_NFC,"conf1: "); dump_hex1(TAG_NFC,block,4);
}
}
return true;
}