Skip to content

Commit

Permalink
Merge pull request #166 from hnykda/patch-2
Browse files Browse the repository at this point in the history
Fix build on ESP-IDF: Change logging message type interpolation
  • Loading branch information
lanwin authored Aug 26, 2024
2 parents 0e3463e + b3187a5 commit 164b90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/samsung_ac/protocol_nasa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace esphome
#define LOG_MESSAGE(message_name, temp, source, dest) \
if (debug_log_messages) \
{ \
ESP_LOGW(TAG, "s:%s d:%s " #message_name " %f", source.c_str(), dest.c_str(), temp); \
ESP_LOGW(TAG, "s:%s d:%s " #message_name " %g", source.c_str(), dest.c_str(), static_cast<double>(temp)); \
}

uint16_t crc16(std::vector<uint8_t> &data, int startIndex, int length)
Expand Down

0 comments on commit 164b90a

Please sign in to comment.