Skip to content

Commit

Permalink
possible fix for espidf build
Browse files Browse the repository at this point in the history
  • Loading branch information
lanwin committed Apr 10, 2024
1 parent c036e9c commit e3baf81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/samsung_ac/protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ namespace esphome
}

// Check if its a decodeable NonNASA packat
DecodeResult result;
DecodeResult result = DecodeResult::Ok;

if (protocol_processing == ProtocolProcessing::Auto || protocol_processing == ProtocolProcessing::NonNASA)
{
result = try_decode_non_nasa_packet(data);
Expand Down
2 changes: 2 additions & 0 deletions components/samsung_ac/samsung_ac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ namespace esphome
ESP_LOGCONFIG(TAG, " Outdoor: %s", (knownOutdoor.length() == 0 ? "-" : knownOutdoor.c_str()));
ESP_LOGCONFIG(TAG, " Indoor: %s", (knownIndoor.length() == 0 ? "-" : knownIndoor.c_str()));
if (knownOther.length() > 0)
{
ESP_LOGCONFIG(TAG, " Other: %s", knownOther.c_str());
}
}

void Samsung_AC::register_device(Samsung_AC_Device *device)
Expand Down

0 comments on commit e3baf81

Please sign in to comment.