Skip to content

Commit

Permalink
Flush port after write (rbroker#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
gekkekoe committed Mar 30, 2024
1 parent aeeddf4 commit 3439892
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ecodan-ha-local/ehal_hp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ namespace ehal::hp

msg.set_checksum();
port.write(msg.buffer(), msg.size());
port.flush();

auto& config = config_instance();
if (config.DumpPackets)
Expand Down Expand Up @@ -708,4 +709,4 @@ namespace ehal::hp
{
return rxMsgCount;
}
} // namespace ehal::hp
} // namespace ehal::hp

0 comments on commit 3439892

Please sign in to comment.