MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / applyCommTimeouts

Method applyCommTimeouts

external/floppybridge/src/ArduinoInterface.cpp:562–570  ·  view source on GitHub ↗

Apply and change the timeouts on the com port

Source from the content-addressed store, hash-verified

560
561// Apply and change the timeouts on the com port
562void ArduinoInterface::applyCommTimeouts(bool shortTimeouts) {
563 if (shortTimeouts) {
564 m_comPort.setReadTimeouts(5, 12);
565 }
566 else {
567 m_comPort.setReadTimeouts(2000, 200);
568 }
569 m_comPort.setWriteTimeouts(2000, 200);
570}
571
572// Closes the port down
573void ArduinoInterface::closePort() {

Callers

nothing calls this directly

Calls 2

setReadTimeoutsMethod · 0.80
setWriteTimeoutsMethod · 0.80

Tested by

no test coverage detected