ESP-IDF v5 compatibility
This commit is contained in:
@@ -180,27 +180,27 @@ script:
|
||||
if (addon_climate_cool) {
|
||||
ESP_LOGI(TAG, " Cool: %s", addon_climate_cool ? "Enabled" : "Disabled");
|
||||
if (cooler_relay == 1 or cooler_relay == 2)
|
||||
ESP_LOGI(TAG, " Relay: %i", cooler_relay);
|
||||
ESP_LOGI(TAG, " Relay: %u", cooler_relay);
|
||||
else
|
||||
ESP_LOGE(TAG, " Relay: %i", cooler_relay);
|
||||
ESP_LOGE(TAG, " Relay: %u", cooler_relay);
|
||||
}
|
||||
if (addon_climate_heat) {
|
||||
ESP_LOGI(TAG, " Heat: %s", addon_climate_heat ? "Enabled" : "Disabled");
|
||||
if (heater_relay == 1 or heater_relay == 2)
|
||||
ESP_LOGI(TAG, " Relay: %i", heater_relay);
|
||||
ESP_LOGI(TAG, " Relay: %u", heater_relay);
|
||||
else
|
||||
ESP_LOGE(TAG, " Relay: %i", heater_relay);
|
||||
ESP_LOGE(TAG, " Relay: %u", heater_relay);
|
||||
}
|
||||
if (addon_climate_dual) {
|
||||
ESP_LOGI(TAG, " Dual: %s", addon_climate_dual ? "Enabled" : "Disabled");
|
||||
if (cooler_relay == 1 or cooler_relay == 2)
|
||||
ESP_LOGI(TAG, " Relay (cooler): %i", cooler_relay);
|
||||
ESP_LOGI(TAG, " Relay (cooler): %u", cooler_relay);
|
||||
else
|
||||
ESP_LOGE(TAG, " Relay (cooler): %i", cooler_relay);
|
||||
ESP_LOGE(TAG, " Relay (cooler): %u", cooler_relay);
|
||||
if (heater_relay == 1 or heater_relay == 2)
|
||||
ESP_LOGI(TAG, " Relay (heater): %i", heater_relay);
|
||||
ESP_LOGI(TAG, " Relay (heater): %u", heater_relay);
|
||||
else
|
||||
ESP_LOGE(TAG, " Relay (heater): %i", heater_relay);
|
||||
ESP_LOGE(TAG, " Relay (heater): %u", heater_relay);
|
||||
if (cooler_relay == heater_relay)
|
||||
ESP_LOGE(TAG, " Double relay assignment");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user