Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Sep 10, 2024
1 parent cc902af commit 2ee16d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bedsidemon/serial_port_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ void serial_port_thread::send(std::vector<uint8_t> data)
if (this->send_buffer.empty()) {
this->send_buffer = std::move(data);
} else {
this->send_buffer.insert(this->send_buffer.end(), data.begin(), data.end());
using std::begin;
using std::end;
this->send_buffer.insert(end(this->send_buffer), begin(data), end(data));
}

this->wait_set.change(this->port, opros::ready::read | opros::ready::write, &this->port);
Expand Down

0 comments on commit 2ee16d0

Please sign in to comment.