This commit is contained in:
pls.153 2024-08-13 09:51:12 +02:00
parent b4e8d9d725
commit 56abcec16c
2 changed files with 2 additions and 1 deletions

View file

@ -7,9 +7,10 @@
USB_ME::USB_ME(Connection* _con) : con(_con) {
connect(this, &QSerialPort::readyRead, this, &USB_ME::read2);
connect(this, &QSerialPort::errorOccurred,
[](QSerialPort::SerialPortError error) {
[&](QSerialPort::SerialPortError error) {
if (error != QSerialPort::NoError) {
qDebug() << "USB error:" << error;
disconnect();
}
});
setBaudRate(Baud115200);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 282 KiB

After

Width:  |  Height:  |  Size: 265 KiB

Before After
Before After