Double warnings on USB disconnect

This commit is contained in:
Bertrand Songis
2019-06-18 23:28:59 +02:00
parent eaf595bd76
commit ffe8d821cd
4 changed files with 38 additions and 22 deletions
+2 -2
View File
@@ -173,10 +173,10 @@ void StartSimu(bool tests, const char * sdPath, const char * settingsPath)
if (simu_running)
return;
moduleState[0].protocol = PROTOCOL_CHANNELS_UNINITIALIZED;
stopPulses();
menuLevel = 0;
simu_start_mode = (tests ? 0 : 0x02 /* OPENTX_START_NO_CHECKS */);
simu_start_mode = (tests ? 0 : OPENTX_START_NO_SPLASH | OPENTX_START_NO_CALIBRATION | OPENTX_START_NO_CHECKS);
simu_shutdown = false;
simuFatfsSetPaths(sdPath, settingsPath);