ApiHalNfc: exit sleep mode before activating field and vice versa (#456)

This commit is contained in:
あく 2021-05-10 11:43:58 +03:00 committed by GitHub
parent a975fb6dc5
commit 6f58a53dc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,11 +16,13 @@ bool api_hal_nfc_is_busy() {
} }
void api_hal_nfc_field_on() { void api_hal_nfc_field_on() {
api_hal_nfc_exit_sleep();
st25r3916TxRxOn(); st25r3916TxRxOn();
} }
void api_hal_nfc_field_off() { void api_hal_nfc_field_off() {
rfalFieldOff(); st25r3916TxRxOff();
api_hal_nfc_start_sleep();
} }
void api_hal_nfc_start_sleep() { void api_hal_nfc_start_sleep() {