Unchecked gpio_config returns
This commit is contained in:
@ -49,7 +49,12 @@ void initInputs(void)
|
|||||||
.intr_type = GPIO_INTR_DISABLE // Disable interrupts
|
.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();
|
xMutexAccessInputs = xSemaphoreCreateRecursiveMutex();
|
||||||
if (xMutexAccessInputs == NULL)
|
if (xMutexAccessInputs == NULL)
|
||||||
|
|||||||
@ -41,9 +41,26 @@ void initOutputs(void)
|
|||||||
.intr_type = GPIO_INTR_DISABLE // Disable interrupts
|
.intr_type = GPIO_INTR_DISABLE // Disable interrupts
|
||||||
};
|
};
|
||||||
|
|
||||||
gpio_config(&ioConfCirculationPump);
|
esp_err_t ret = gpio_config(&ioConfCirculationPump);
|
||||||
gpio_config(&ioConfBurner);
|
if (ret != ESP_OK)
|
||||||
gpio_config(&ioConfSafetyContact);
|
{
|
||||||
|
ESP_LOGE(TAG, "GPIO config failed: %s", esp_err_to_name(ret));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = gpio_config(&ioConfBurner);
|
||||||
|
if (ret != ESP_OK)
|
||||||
|
{
|
||||||
|
ESP_LOGE(TAG, "GPIO config failed: %s", esp_err_to_name(ret));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = gpio_config(&ioConfSafetyContact);
|
||||||
|
if (ret != ESP_OK)
|
||||||
|
{
|
||||||
|
ESP_LOGE(TAG, "GPIO config failed: %s", esp_err_to_name(ret));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
xMutexAccessOutputs = xSemaphoreCreateRecursiveMutex();
|
xMutexAccessOutputs = xSemaphoreCreateRecursiveMutex();
|
||||||
if (xMutexAccessOutputs == NULL)
|
if (xMutexAccessOutputs == NULL)
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
#include "sntp.h"
|
#include "sntp.h"
|
||||||
|
|
||||||
static const char *TAG = "smart-oil-heater-control-system-sntp";
|
static const char *TAG = "smart-oil-heater-control-system-sntp";
|
||||||
static eSntpState sntpState = SYNC_NOT_STARTED;
|
static volatile eSntpState sntpState = SYNC_NOT_STARTED;
|
||||||
void time_sync_notification_cb(struct timeval *tv);
|
void time_sync_notification_cb(struct timeval *tv);
|
||||||
|
|
||||||
void initSntp(void)
|
void initSntp(void)
|
||||||
|
|||||||
Reference in New Issue
Block a user