Skip to content

Commit

Permalink
sd2snes: fix a linux issue, waitforbytewritten does not pause the eve…
Browse files Browse the repository at this point in the history
…nt loop
  • Loading branch information
Skarsnik committed Nov 8, 2020
1 parent 846afda commit 8555ba2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devices/sd2snesdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8555ba2

Please sign in to comment.