mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Missing initialization in simulator. Does if fix #937?
This commit is contained in:
parent
ae3f207140
commit
e1e15787c5
2 changed files with 6 additions and 2 deletions
|
@ -336,8 +336,6 @@ void SimulatorDialog::initUi(T * ui)
|
|||
else {
|
||||
ui->lcd->setFocus();
|
||||
}
|
||||
|
||||
setupTimer();
|
||||
}
|
||||
|
||||
void SimulatorDialog::onButtonPressed(int value)
|
||||
|
@ -437,11 +435,15 @@ void SimulatorDialog::centerSticks()
|
|||
void SimulatorDialog::start(QByteArray & eeprom)
|
||||
{
|
||||
simulator->start(eeprom, (flags & SIMULATOR_FLAGS_NOTX) ? false : true);
|
||||
getValues();
|
||||
setupTimer();
|
||||
}
|
||||
|
||||
void SimulatorDialog::start(const char * filename)
|
||||
{
|
||||
simulator->start(filename);
|
||||
getValues();
|
||||
setupTimer();
|
||||
}
|
||||
|
||||
void SimulatorDialog::setTrims()
|
||||
|
|
|
@ -350,6 +350,8 @@ void StartMainThread(bool tests)
|
|||
pthread_mutex_init(&audioMutex, NULL);
|
||||
#endif
|
||||
|
||||
g_tmr10ms = 0;
|
||||
|
||||
main_thread_running = (tests ? 1 : 2);
|
||||
pthread_create(&main_thread_pid, NULL, &main_thread, NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue