Skip to content

Commit

Permalink
loosen timing requirements for Raspberry Pi temporarily until a bette…
Browse files Browse the repository at this point in the history
…r solution found
  • Loading branch information
bweir committed Apr 23, 2015
1 parent d6d0d3d commit c327690
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Loader.cpp
Expand Up @@ -18,8 +18,12 @@ Loader::Loader(QString port, int reset_gpio, bool useRtsReset, QObject * parent)

serial.setSettingsRestoredOnClose(false);
serial.setPortName(port);

#if defined(Q_PROCESSOR_ARM_V7) && defined(Q_OS_LINUX)
serial.setBaudRate(115200);
#else
serial.setBaudRate(230400);
// serial.setBaudRate(115200);
#endif

connect(&serial, SIGNAL(error(QSerialPort::SerialPortError)),
this, SLOT(device_error(QSerialPort::SerialPortError)));
Expand Down Expand Up @@ -93,7 +97,12 @@ void Loader::reset()
}
}


#if defined(Q_PROCESSOR_ARM_V7) && defined(Q_OS_LINUX)
QThread::msleep(80);
#else
QThread::msleep(60);
#endif

serial.clear(QSerialPort::Input);
}
Expand Down

0 comments on commit c327690

Please sign in to comment.