[FL-2674] Show error popup when NFC chip is not init/disconnected (#1722)
* Show error popup when NFC chip is not init/disconnected * Move to dialogs for the error message * Fix a memory leak and wrap the hal check * F7: update api_symbols.csv, add furi_hal_nfc_is_init Co-authored-by: SG <who.just.the.doctor@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -39,6 +39,10 @@ bool furi_hal_nfc_is_busy() {
|
||||
return rfalNfcGetState() != RFAL_NFC_STATE_IDLE;
|
||||
}
|
||||
|
||||
bool furi_hal_nfc_is_init() {
|
||||
return rfalNfcGetState() != RFAL_NFC_STATE_NOTINIT;
|
||||
}
|
||||
|
||||
void furi_hal_nfc_field_on() {
|
||||
furi_hal_nfc_exit_sleep();
|
||||
st25r3916TxRxOn();
|
||||
|
Reference in New Issue
Block a user