fix: Correctly reflect state of AUX1 when DEBUG build (#3814)

This commit is contained in:
Michael
2023-10-09 20:07:51 +10:00
committed by GitHub
parent 4485df77bb
commit c51c91401e
5 changed files with 24 additions and 6 deletions
+7
View File
@@ -105,6 +105,13 @@ void postRadioSettingsLoad()
g_eeGeneral.stickDeadZone = DEFAULT_STICK_DEADZONE;
}
#endif
#if !defined(DEBUG)
// clean up leftovers from a previous DEBUG config
for (uint8_t port_nr = 0; port_nr < MAX_AUX_SERIAL; port_nr++) {
if (serialGetMode(port_nr) == UART_MODE_DEBUG)
serialSetMode(port_nr, UART_MODE_NONE);
}
#endif
}
static bool sortMixerLines()