Unchecked gpio_config returns
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user