1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Workaround: SERIAL_CHECK_TX is broken on F7 (#14052)

This commit is contained in:
Petr Ledvina 2024-11-30 17:21:28 +01:00 committed by GitHub
parent db44e9df9e
commit 1f4221cba8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -436,8 +436,11 @@ void gpsInit(void)
}
#endif
if (serialType(gpsPortConfig->identifier) == SERIALTYPE_UART
|| serialType(gpsPortConfig->identifier) == SERIALTYPE_LPUART){
|| serialType(gpsPortConfig->identifier) == SERIALTYPE_LPUART) {
// TODO: SERIAL_CHECK_TX is broken on F7, disable it until it is fixed
#if !defined(STM32F7) || defined(USE_F7_CHECK_TX)
options |= SERIAL_CHECK_TX;
#endif
}
// no callback - buffer will be consumed in gpsUpdate()

View file

@ -71,7 +71,10 @@ void mspSerialAllocatePorts(void)
options |= SERIAL_BIDIR;
} else if (serialType(portConfig->identifier) == SERIALTYPE_UART
|| serialType(portConfig->identifier) == SERIALTYPE_LPUART) {
// TODO: SERIAL_CHECK_TX is broken on F7, disable it until it is fixed
#if !defined(STM32F7) || defined(USE_F7_CHECK_TX)
options |= SERIAL_CHECK_TX;
#endif
}
serialPort_t *serialPort = openSerialPort(portConfig->identifier, FUNCTION_MSP, NULL, NULL, baudRates[portConfig->msp_baudrateIndex], MODE_RXTX, options);