more contro fault states
This commit is contained in:
@ -61,19 +61,19 @@ void taskControl(void *pvParameters)
|
||||
if (getSafetyState() != SAFETY_NO_ERROR)
|
||||
{
|
||||
ESP_LOGW(TAG, "Control not possible due to safety fault!");
|
||||
sControlState = CONTROL_FAULT;
|
||||
sControlState = CONTROL_FAULT_SAFETY;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (getSntpState() != SYNC_SUCCESSFUL)
|
||||
{
|
||||
ESP_LOGW(TAG, "Control not possible due to sntp fault!");
|
||||
sControlState = CONTROL_FAULT;
|
||||
sControlState = CONTROL_FAULT_SNTP;
|
||||
continue;
|
||||
}
|
||||
|
||||
sControlTemperatureEntry currentControlEntry = getCurrentTemperatureEntry();
|
||||
ESP_LOGI(TAG, "Control Entry Hour: %i Minute: %i ChamberTemp: %lf ReturnFlowTemp: %lf", currentControlEntry.timestamp.hour, currentControlEntry.timestamp.minute, currentControlEntry.fChamberTemperature, currentControlEntry.fReturnFlowTemperature);
|
||||
// ESP_LOGI(TAG, "Control Entry Hour: %i Minute: %i ChamberTemp: %lf ReturnFlowTemp: %lf", currentControlEntry.timestamp.hour, currentControlEntry.timestamp.minute, currentControlEntry.fChamberTemperature, currentControlEntry.fReturnFlowTemperature);
|
||||
|
||||
if (bHeatingInAction == true)
|
||||
{
|
||||
|
@ -10,7 +10,8 @@ typedef enum _ControlState
|
||||
CONTROL_OUTDOOR_TOO_WARM,
|
||||
CONTROL_RETURN_FLOW_TOO_WARM,
|
||||
CONTROL_BURNER_FAULT,
|
||||
CONTROL_FAULT,
|
||||
CONTROL_FAULT_SAFETY,
|
||||
CONTROL_FAULT_SNTP,
|
||||
} eControlState;
|
||||
|
||||
typedef enum _ControlWeekday
|
||||
|
Reference in New Issue
Block a user