Skip to content

Commit

Permalink
replace all tabs with space
Browse files Browse the repository at this point in the history
  • Loading branch information
north3221 committed Jul 24, 2024
1 parent fa77ae7 commit 4195b48
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/samsung_ac/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ namespace esphome
virtual void set_target_temperature(const std::string address, float value) = 0;
virtual void set_outdoor_temperature(const std::string address, float value) = 0;
virtual void set_target_water_temperature(const std::string address, float value) = 0;
virtual void set_mode(const std::string address, Mode mode) = 0;
virtual void set_mode(const std::string address, Mode mode) = 0;
virtual void set_fanmode(const std::string address, FanMode fanmode) = 0;
virtual void set_altmode(const std::string address, AltMode altmode) = 0;
virtual void set_swing_vertical(const std::string address, bool vertical) = 0;
Expand Down
6 changes: 3 additions & 3 deletions components/samsung_ac/protocol_nasa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ namespace esphome
targettemp.value = request.target_temp.value() * 10.0;
packet.messages.push_back(targettemp);
}
if (request.target_water_temp)
if (request.target_water_temp)
{
MessageSet targetwatertemp(MessageNumber::VAR_in_temp_water_heater_target_f);
targetwatertemp.value = request.target_water_temp.value() * 10.0;
Expand Down Expand Up @@ -528,7 +528,7 @@ namespace esphome
target->set_target_temperature(source, temp);
return;
}
case MessageNumber::VAR_in_temp_water_heater_target_f: // unit = 'Celsius' from XML
case MessageNumber::VAR_in_temp_water_heater_target_f: // unit = 'Celsius' from XML
{
double temp = (double)message.value / (double)10;
ESP_LOGW(TAG, "s:%s d:%s VAR_in_temp_water_heater_target_f %f", source.c_str(), dest.c_str(), temp);
Expand Down
4 changes: 2 additions & 2 deletions components/samsung_ac/protocol_non_nasa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,8 @@ namespace esphome
{
last_command20s_[nonpacket_.src] = nonpacket_.command20;
target->set_target_temperature(nonpacket_.src, nonpacket_.command20.target_temp);
// TODO
target->set_target_water_temperature(nonpacket_.src, false);
// TODO
target->set_target_water_temperature(nonpacket_.src, false);
target->set_room_temperature(nonpacket_.src, nonpacket_.command20.room_temp);
target->set_power(nonpacket_.src, nonpacket_.command20.power);
target->set_mode(nonpacket_.src, nonnasa_mode_to_mode(nonpacket_.command20.mode));
Expand Down

0 comments on commit 4195b48

Please sign in to comment.