diff options
author | Aleksandr Kutuzov <aku@plooks.com> | 2020-10-19 02:33:06 +0300 |
---|---|---|
committer | Aleksandr Kutuzov <aku@plooks.com> | 2020-10-20 14:12:34 +0300 |
commit | 785469f598271f700dd4cf4a1488c9bb643e62c4 (patch) | |
tree | 9de765c56156d186c6b12fa16e8f2e30d7043cde /applications/input | |
parent | ecc93152c987f7196d43b4c9d40dc4eaa5b18548 (diff) |
NFC: input ISR cleanup
Diffstat (limited to 'applications/input')
-rw-r--r-- | applications/input/input.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/applications/input/input.c b/applications/input/input.c index ac3b2ef5..f647f06e 100644 --- a/applications/input/input.c +++ b/applications/input/input.c @@ -101,12 +101,15 @@ void input_task(void* p) { } void HAL_GPIO_EXTI_Callback(uint16_t pin) { + if(pin == RFID_PULL_Pin) { + st25r3916Isr(); + return; + } + if(!initialized) return; BaseType_t task_woken = pdFALSE; - st25r3916Isr(); - // Ignore the result, as we do not care about repeated event during event processing. xSemaphoreGiveFromISR(event, &task_woken); |