Unchecked gpio_config returns

This commit is contained in:
2026-01-10 11:39:37 +01:00
parent df3825df3a
commit 10f9645580
3 changed files with 27 additions and 5 deletions

View File

@ -49,7 +49,12 @@ void initInputs(void)
.intr_type = GPIO_INTR_DISABLE // Disable interrupts
};
gpio_config(&ioConfBurnerFault);
esp_err_t ret = gpio_config(&ioConfBurnerFault);
if (ret != ESP_OK)
{
ESP_LOGE(TAG, "GPIO config failed: %s", esp_err_to_name(ret));
return;
}
xMutexAccessInputs = xSemaphoreCreateRecursiveMutex();
if (xMutexAccessInputs == NULL)