mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 13:03:13 +00:00
nfc: fixed missing interrupt setup on multiple platformSetIrqCallback() invocations
This commit is contained in:
parent
ffae861bc2
commit
963b19e2e0
1 changed files with 5 additions and 5 deletions
|
@ -52,12 +52,12 @@ void platformSetIrqCallback(PlatformIrqCallback callback) {
|
||||||
furi_thread_mark_as_service(rfal_platform.thread);
|
furi_thread_mark_as_service(rfal_platform.thread);
|
||||||
furi_thread_set_priority(rfal_platform.thread, FuriThreadPriorityIsr);
|
furi_thread_set_priority(rfal_platform.thread, FuriThreadPriorityIsr);
|
||||||
furi_thread_start(rfal_platform.thread);
|
furi_thread_start(rfal_platform.thread);
|
||||||
|
|
||||||
furi_hal_gpio_add_int_callback(&gpio_nfc_irq_rfid_pull, nfc_isr, NULL);
|
|
||||||
// Disable interrupt callback as the pin is shared between 2 apps
|
|
||||||
// It is enabled in rfalLowPowerModeStop()
|
|
||||||
furi_hal_gpio_disable_int_callback(&gpio_nfc_irq_rfid_pull);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
furi_hal_gpio_add_int_callback(&gpio_nfc_irq_rfid_pull, nfc_isr, NULL);
|
||||||
|
// Disable interrupt callback as the pin is shared between 2 apps
|
||||||
|
// It is enabled in rfalLowPowerModeStop()
|
||||||
|
furi_hal_gpio_disable_int_callback(&gpio_nfc_irq_rfid_pull);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool platformSpiTxRx(const uint8_t* txBuf, uint8_t* rxBuf, uint16_t len) {
|
bool platformSpiTxRx(const uint8_t* txBuf, uint8_t* rxBuf, uint16_t len) {
|
||||||
|
|
Loading…
Reference in a new issue