fix(trainer): SBUS trainer context ownership (#7699)

Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
Raphael Coeffic
2026-08-26 13:06:17 +10:00
committed by GitHub
co-authored by raphaelcoeffic
parent fcd4b8d2e4
commit 878f414975
8 changed files with 152 additions and 44 deletions
+1 -1
View File
@@ -1176,7 +1176,7 @@ bool isTrainerModeAvailable(int mode)
#endif
if (mode == TRAINER_MODE_MASTER_SERIAL) {
return serialGetModePort(UART_MODE_SBUS_TRAINER) >= 0;
return serialGetSbusTrainerPort() >= 0;
}
if ((mode == TRAINER_MODE_MASTER_BLUETOOTH ||