Ver Fonte

NFC: input ISR cleanup

Aleksandr Kutuzov há 5 anos atrás
pai
commit
785469f598
1 ficheiros alterados com 5 adições e 2 exclusões
  1. 5 2
      applications/input/input.c

+ 5 - 2
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);