Skip to content

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
lanwin committed Feb 8, 2024
1 parent e757a26 commit b29d941
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/samsung_ac/protocol_non_nasa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ namespace esphome
return nonpacket_.decode(data);
}

void send_packages(MessageTarget *target, uint8_t delay_ms)
void send_requests(MessageTarget *target, uint8_t delay_ms)
{
while (nonnasa_requests.size() > 0)
{
Expand Down Expand Up @@ -517,15 +517,15 @@ namespace esphome
// the communication needs a delay from cmdf8 to send the data.
// series of test-delay-times: 1ms: no reaction, 7ms reactions half the time, 10ms very often a reaction (95%) -> delay on 20ms should be safe
// the gap is around ~300ms
send_packages(target, 20);
send_requests(target, 20);
}
}
else if (nonpacket_.cmd == NonNasaCommand::CmdC6)
{
// If the control status is set we can send also
if (nonpacket_.src == "c8" && nonpacket_.dst == "d0" && nonpacket_.commandC6.control_status == true)
{
send_packages(target, 20);
send_requests(target, 20);
}
}
}
Expand Down

0 comments on commit b29d941

Please sign in to comment.