Skip to content

Commit

Permalink
Merge pull request #50 from muart-group/fix-tests
Browse files Browse the repository at this point in the history
Cast to unsigned long to fix log
  • Loading branch information
Sammy1Am authored Jun 19, 2024
2 parents e60f6d4 + f4b8407 commit bd0ccae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esphome/components/mitsubishi_itp/mitsubishi_uart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ void MitsubishiUART::loop() {
if (((millis() - last_received_temperature_) > TEMPERATURE_SOURCE_TIMEOUT_MS) &&
(temperature_source_select_->has_option(TEMPERATURE_SOURCE_INTERNAL)) &&
(temperature_source_select_->state != TEMPERATURE_SOURCE_INTERNAL)) {
ESP_LOGW(TAG, "No temperature received from %s for %u milliseconds, reverting to Internal source",
current_temperature_source_.c_str(), TEMPERATURE_SOURCE_TIMEOUT_MS);
ESP_LOGW(TAG, "No temperature received from %s for %lu milliseconds, reverting to Internal source",
current_temperature_source_.c_str(), (unsigned long) TEMPERATURE_SOURCE_TIMEOUT_MS);
// Set the select to show Internal (but do not change currentTemperatureSource)
temperature_source_select_->publish_state(TEMPERATURE_SOURCE_INTERNAL);
// Send a packet to the heat pump to tell it to switch to internal temperature sensing
Expand Down

0 comments on commit bd0ccae

Please sign in to comment.