Introduce T-pro and function switches handling
This commit is contained in:
+10
-1
@@ -171,6 +171,10 @@ void per10ms()
|
||||
|
||||
readKeysAndTrims();
|
||||
|
||||
#if defined(FUNCTION_SWITCHES)
|
||||
evalFunctionSwitches();
|
||||
#endif
|
||||
|
||||
#if defined(ROTARY_ENCODER_NAVIGATION)
|
||||
if (IS_ROTARY_ENCODER_NAVIGATION_ENABLE()) {
|
||||
static rotenc_t rePreviousValue;
|
||||
@@ -372,7 +376,6 @@ uint16_t evalChkSum()
|
||||
return sum;
|
||||
}
|
||||
|
||||
|
||||
bool isInputRecursive(int index)
|
||||
{
|
||||
ExpoData * line = expoAddress(0);
|
||||
@@ -1414,6 +1417,12 @@ void opentxStart(const uint8_t startOptions = OPENTX_START_DEFAULT_ARGS)
|
||||
ALERT(STR_TEST_WARNING, TR_TEST_NOTSAFE, AU_ERROR);
|
||||
#endif
|
||||
|
||||
#if defined(FUNCTION_SWITCHES)
|
||||
if (!UNEXPECTED_SHUTDOWN()) {
|
||||
setFSStartupPosition();
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(GUI)
|
||||
if (calibration_needed) {
|
||||
#if defined(LIBOPENUI)
|
||||
|
||||
Reference in New Issue
Block a user