Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
TIT8 committed May 5, 2024
1 parent b4f4c24 commit 300bf1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static void gpio_task(void *arg)
// First time in this task from waiting? Disable interrupt
if(first)
{
gpio_intr_disable(GPIO_NUM_26);
ESP_ERROR_CHECK(gpio_intr_disable(GPIO_NUM_26));
triggered = true;
button_current = 0;
}
Expand Down Expand Up @@ -274,7 +274,7 @@ static void gpio_task(void *arg)
button_last = 1;
count = 0;
vTaskDelay(100 / portTICK_PERIOD_MS);
gpio_intr_enable(GPIO_NUM_26);
ESP_ERROR_CHECK(gpio_intr_enable(GPIO_NUM_26));
}

// Yield control to the idle task on core 1 if the task priority is setted above 0
Expand Down

0 comments on commit 300bf1a

Please sign in to comment.