summaryrefslogtreecommitdiff
path: root/printerclient.cpp
diff options
context:
space:
mode:
authorNikita Kostovsky <nikita@kostovsky.me>2025-01-12 11:50:34 +0100
committerNikita Kostovsky <nikita@kostovsky.me>2025-01-12 11:50:34 +0100
commit9dde2ab53c8e2c97647164fce89cf149260fbc8f (patch)
treef428169ce67a93d0532d91883e18892736bb26b4 /printerclient.cpp
parent8630381c7e1fa1527026b9c823790dc3f92c6321 (diff)
implement calibration
Diffstat (limited to 'printerclient.cpp')
-rw-r--r--printerclient.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/printerclient.cpp b/printerclient.cpp
index a78de50..ac269b3 100644
--- a/printerclient.cpp
+++ b/printerclient.cpp
@@ -19,7 +19,8 @@ QString getFirstTtyUSB()
}
PrinterClient::PrinterClient(QObject* parent)
- : QObject{parent} // , m_serialPort{new QSerialPort{"/dev/ttyUSB0", this}}
+ : QObject{parent}
+ // , m_serialPort{new QSerialPort{"/dev/ttyUSB0", this}}
, m_serialPort{new QSerialPort{getFirstTtyUSB(), this}}
{
if (!m_serialPort->setBaudRate(QSerialPort::Baud115200)) {
@@ -76,7 +77,7 @@ void PrinterClient::onReadyRead()
const auto data = m_serialPort->readAll();
qDebug() << "serialPort: " << data;
- emit newData(data);
+ // emit newData(data);
}
void PrinterClient::onErrorOccured(QSerialPort::SerialPortError error)