Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation on ESP-IDF 5.3.1, platform 6.9.0 #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion components/daikin_s21/climate/daikin_s21_climate.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <cinttypes>
#include "esphome/core/defines.h"
#include "esphome/core/hal.h"
#include "esphome/core/log.h"
Expand All @@ -24,7 +25,7 @@ void DaikinS21Climate::setup() {

void DaikinS21Climate::dump_config() {
ESP_LOGCONFIG(TAG, "DaikinS21Climate:");
ESP_LOGCONFIG(TAG, " Update interval: %u", this->get_update_interval());
ESP_LOGCONFIG(TAG, " Update interval: %" PRIu32, this->get_update_interval());
if (this->room_sensor_ != nullptr) {
if (!this->room_sensor_unit_is_valid()) {
ESP_LOGCONFIG(TAG, " ROOM SENSOR: INVALID UNIT '%s' (must be °C or °F)",
Expand Down Expand Up @@ -139,6 +140,8 @@ void DaikinS21Climate::save_setpoint(float value) {
case DaikinClimateMode::Heat:
this->save_setpoint(value, this->heat_setpoint_pref);
break;
default:
break;
}
}
}
Expand All @@ -163,6 +166,8 @@ optional<float> DaikinS21Climate::load_setpoint(DaikinClimateMode mode) {
case DaikinClimateMode::Heat:
loaded = this->load_setpoint(this->heat_setpoint_pref);
break;
default:
break;
}
return loaded;
}
Expand Down
5 changes: 3 additions & 2 deletions components/daikin_s21/s21.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <cinttypes>
#include "s21.h"

using namespace esphome;
Expand Down Expand Up @@ -105,7 +106,7 @@ void DaikinS21::check_uart_settings() {
ESP_LOGE(
TAG,
" Invalid baud_rate: Integration requested baud_rate %u but you "
"have %u!",
"have %" PRIu32 "!",
S21_BAUD_RATE, uart->get_baud_rate());
}
if (uart->get_stop_bits() != S21_STOP_BITS) {
Expand Down Expand Up @@ -133,7 +134,7 @@ void DaikinS21::check_uart_settings() {

void DaikinS21::dump_config() {
ESP_LOGCONFIG(TAG, "DaikinS21:");
ESP_LOGCONFIG(TAG, " Update interval: %u", this->get_update_interval());
ESP_LOGCONFIG(TAG, " Update interval: %" PRIu32, this->get_update_interval());
this->check_uart_settings();
}

Expand Down