Apply and change the timeouts on the com port
| 560 | |
| 561 | // Apply and change the timeouts on the com port |
| 562 | void 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 |
| 573 | void ArduinoInterface::closePort() { |
nothing calls this directly
no test coverage detected