fix(simulator): fixed LCD flush sync with QT simulator (#2030)

This commit is contained in:
Raphael Coeffic
2022-06-12 11:28:05 +02:00
committed by GitHub
parent 6465c554cb
commit a00975d3e5
7 changed files with 14 additions and 3 deletions
+6 -2
View File
@@ -132,8 +132,7 @@ void OpenTxSimulator::init()
void OpenTxSimulator::start(const char * filename, bool tests)
{
if (isRunning())
return;
if (isRunning()) return;
ETXS_DBG << "file:" << filename << "tests:" << tests;
QMutexLocker lckr(&m_mtxSimuMain);
@@ -375,6 +374,11 @@ void OpenTxSimulator::touchEvent(int type, int x, int y)
#endif
}
void OpenTxSimulator::lcdFlushed()
{
::lcdFlushed();
}
void OpenTxSimulator::setTrainerTimeout(uint16_t ms)
{
ppmInputValidityTimer = ms;