chore(radio): Cleanup startup code, fix throttle warning led color, startup haptic option (#4027)
This commit is contained in:
@@ -43,7 +43,8 @@
|
||||
|
||||
int g_snapshot_idx = 0;
|
||||
|
||||
uint8_t simu_start_mode = 0;
|
||||
extern uint8_t startOptions;
|
||||
|
||||
char * main_thread_error = nullptr;
|
||||
|
||||
bool simu_shutdown = false;
|
||||
@@ -159,7 +160,7 @@ void simuStart(bool tests, const char * sdPath, const char * settingsPath)
|
||||
menuLevel = 0;
|
||||
#endif
|
||||
|
||||
simu_start_mode = (tests ? 0 : OPENTX_START_NO_SPLASH | OPENTX_START_NO_CALIBRATION | OPENTX_START_NO_CHECKS);
|
||||
startOptions = (tests ? 0 : OPENTX_START_NO_SPLASH | OPENTX_START_NO_CALIBRATION | OPENTX_START_NO_CHECKS);
|
||||
simu_shutdown = false;
|
||||
|
||||
simuFatfsSetPaths(sdPath, settingsPath);
|
||||
|
||||
@@ -39,11 +39,8 @@ extern uint8_t * eeprom;
|
||||
#define __disable_irq()
|
||||
#define __enable_irq()
|
||||
|
||||
extern uint8_t simu_start_mode;
|
||||
extern char * main_thread_error;
|
||||
|
||||
#define OPENTX_START_DEFAULT_ARGS simu_start_mode
|
||||
|
||||
|
||||
uint64_t simuTimerMicros(void);
|
||||
uint8_t simuSleep(uint32_t ms); // returns true if thread shutdown requested
|
||||
|
||||
Reference in New Issue
Block a user