Commit MetaInfo

Revision0f5d3c870538b4aa13f77745bceb1510a980e52d (tree)
Time2018-10-10 21:39:52
AuthorSergey Gusarov
CommiterSergey Gusarov

Log Message

Changed debug messages

Change Summary

Incremental Difference

diff -r e12b972d8fbe -r 0f5d3c870538 src/serial_commands_controller.cpp
--- a/src/serial_commands_controller.cpp Wed Oct 10 15:37:18 2018 +0300
+++ b/src/serial_commands_controller.cpp Wed Oct 10 15:39:52 2018 +0300
@@ -210,7 +210,11 @@
210210 }
211211 };
212212
213- if (!serialPort.open(qtOpenMode))
213+ if (serialPort.open(qtOpenMode))
214+ {
215+ //CT_TRACE_DEBUG("Opened Com Port=%s, thread=%u", comPort.c_str(), QThread::currentThreadId());
216+ }
217+ else
214218 {
215219 const QSerialPort::SerialPortError kError = serialPort.error();
216220 const int kErrorValue = static_cast<int>(kError);
@@ -219,16 +223,14 @@
219223 CPT_THROW(cpptools::exceptions::ComPortOpenException,
220224 std::error_code(kErrorValue, std::system_category()), comPort);
221225 }
222- else
223- {
224- CT_TRACE_DEBUG("Opened Com Port=%s", comPort.c_str());
225- }
226226 }
227227
228228 void SerialCommandsController::closeComPort()
229229 {
230230 serialPort.close();
231231
232+ //CT_TRACE_DEBUG("Closed port %s, thread=%u", QTT_LATIN_PRINTABLE(serialPort.portName()), QThread::currentThreadId());
233+
232234 const QSerialPort::SerialPortError kError = serialPort.error();
233235
234236 CT_TRACE_WARNING_IF(kError != QSerialPort::NoError, "Error detected(%u) while closing the port %s",
Show on old repository browser