tell AMS to go to sleep if deselected

This commit is contained in:
Conor Patrick
2019-01-27 23:55:11 -05:00
parent 23cbfde312
commit 91d092a27a
2 changed files with 5 additions and 2 deletions

View File

@ -508,6 +508,8 @@ void nfc_process_block(uint8_t * buf, int len)
{
nfc_write_frame(buf, 1);
printf1(TAG_NFC, "NFC_CMD_SBLOCK, DESELECTED\r\n");
ams_wait_for_tx(2);
ams_write_command(AMS_CMD_SLEEP);
nfc_state_init();
}
else