Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Sep 25, 2024
1 parent 713b7c2 commit b8851e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bedsidemon/serial_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ serial_port::serial_port(std::string_view port_filename, baud_rate baud_rate) :
.c_iflag = IGNPAR | IGNBRK, //
.c_oflag = 0,
.c_cflag = CBAUD | CS8 | CLOCAL | CREAD,
.c_lflag = 0
.c_lflag = 0 // noncanonical mode
};
newtermios.c_cc[VMIN] = 0;
newtermios.c_cc[VTIME] = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/bedsidemon/serial_port_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ std::optional<uint32_t> serial_port_thread::on_loop()

auto received_span = utki::make_span(buffer.data(), num_received);

// std::cout << "received = ";
// std::cout << "received " << num_received << " bytes: " << std::hex;
// for (const auto& c : received_span) {
// std::cout << c;
// std::cout << unsigned(c) << " ";
// }
// std::cout << std::endl;

Expand Down

0 comments on commit b8851e4

Please sign in to comment.