fix(x12s): only preset AUX2 to GPS if enabled

Fixes #5826
This commit is contained in:
Peter Feerick
2025-02-07 13:50:56 +10:00
committed by Peter Feerick
parent 4d3c0c3e55
commit d9d126f9cc
+1 -1
View File
@@ -93,7 +93,7 @@ void postRadioSettingsLoad()
setDefaultOwnerId();
}
#endif
#if defined(PCBX12S)
#if defined(PCBX12S) && defined(INTERNAL_GPS)
// AUX2 is hardwired to AUX2 on X12S
serialSetMode(SP_AUX2, UART_MODE_GPS);
#endif