Skip to content

Commit

Permalink
test(CommNoGui): add setByteReadBufferFullNotify()
Browse files Browse the repository at this point in the history
  • Loading branch information
itas109 committed Jul 7, 2024
1 parent 2ea9728 commit 7b94337
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/CommNoGui/CSerialPortDemoNoGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ int main()
itas109::FlowNone, // flow
4096 // read buffer size
);
sp.setReadIntervalTimeout(0); // read interval timeout 0ms
sp.setReadIntervalTimeout(0); // read interval timeout 0ms
sp.setByteReadBufferFullNotify(4096 * 0.8); // buffer full notify

sp.open();
printf("Open %s %s\n", portName, sp.isOpen() ? "Success" : "Failed");
Expand Down

0 comments on commit 7b94337

Please sign in to comment.