MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / ~UART

Method ~UART

app/src/IO/Drivers/UART.cpp:103–111  ·  view source on GitHub ↗

* @brief Closes the active port and releases its handle. */

Source from the content-addressed store, hash-verified

101 * @brief Closes the active port and releases its handle.
102 */
103IO::Drivers::UART::~UART()
104{
105 if (port()) {
106 if (port()->isOpen())
107 port()->close();
108
109 port()->deleteLater();
110 }
111}
112
113//--------------------------------------------------------------------------------------------------
114// HAL-driver implementation

Callers

nothing calls this directly

Calls 2

isOpenMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected