From 8555ba28a0243c1126021a88b578085704bf1885 Mon Sep 17 00:00:00 2001 From: Sylvain Colinet Date: Sun, 8 Nov 2020 17:54:47 +0100 Subject: [PATCH] sd2snes: fix a linux issue, waitforbytewritten does not pause the event loop --- devices/sd2snesdevice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devices/sd2snesdevice.cpp b/devices/sd2snesdevice.cpp index a6ed80d..7d5d6e7 100644 --- a/devices/sd2snesdevice.cpp +++ b/devices/sd2snesdevice.cpp @@ -344,7 +344,8 @@ void SD2SnesDevice::writeToDevice(const QByteArray& data) sDebug() << "Written : " << written << " bytes - " "Write count" << writeCount++; #ifdef Q_OS_LINUX // Prevents a QSerialPort::ResourceError "Resource temporarily unavailable" error when uploading files to sd2snes. - m_port.waitForBytesWritten(); + // This cause some other weird issue, need more testing? + // m_port.waitForBytesWritten(); #else //m_port.waitForBytesWritten(); m_port.flush();