Explorar el Código

NFC: add interrupt routine only if APP_NFC is defined

Aleksandr Kutuzov hace 5 años
padre
commit
d27b93c1ca
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      applications/input/input.c

+ 5 - 0
applications/input/input.c

@@ -3,7 +3,10 @@
 #include <stdio.h>
 #include <flipper.h>
 
+#ifdef APP_NFC
 void st25r3916Isr(void);
+#endif
+
 static volatile bool initialized = false;
 static SemaphoreHandle_t event;
 static InputState input_state = {
@@ -101,10 +104,12 @@ void input_task(void* p) {
 }
 
 void HAL_GPIO_EXTI_Callback(uint16_t pin) {
+#ifdef APP_NFC
     if(pin == RFID_PULL_Pin) {
         st25r3916Isr();
         return;
     }
+#endif
 
     if(!initialized) return;