Просмотр исходного кода

Correct GPIO interrupt enable condition

SybexXx 3 дней назад
Родитель
Сommit
21597a455e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      code/components/jomjol_controlGPIO/server_GPIO.cpp

+ 1 - 1
code/components/jomjol_controlGPIO/server_GPIO.cpp

@@ -147,7 +147,7 @@ void GpioPin::init()
     }
 
 //    if (_interruptType != GPIO_INTR_DISABLE) {                // ohne GPIO_PIN_MODE_EXTERNAL_FLASH_WS281X, wenn das genutzt wird, dann soll auch der Handler hier nicht initialisiert werden, da das dann über SmartLED erfolgt.
-    if ((_interruptType != GPIO_INTR_DISABLE) && (_interruptType != GPIO_PIN_MODE_EXTERNAL_FLASH_WS281X)) {
+    if (_interruptType != GPIO_INTR_DISABLE) {
         //hook isr handler for specific gpio pin
         ESP_LOGD(TAG, "GpioPin::init add isr handler for GPIO %d", _gpio);
         gpio_isr_handler_add(_gpio, gpio_isr_handler, (void*)&_gpio);