fix(uart): always write to Serial2 (availableForWrite returns 1 on SerialUART)

This commit is contained in:
bleackstorm committed 2026-11-16 20:18:13 +01:00
1 parent 50c1eb05b1
commit f2b9509c25
1 file changed
+1 -3
+1 -3
View File
@@ -810,10 +810,8 @@ void traiterTelemetrieCRSF() {
}
void emettreLigneCockpit(const char* ligne) {
Serial2.println(ligne);
int needed = (int)strlen(ligne) + 2;
if (Serial2.availableForWrite() >= needed) {
Serial2.println(ligne);
}
if (cockpitEchoUSB && Serial && Serial.availableForWrite() >= needed) {
Serial.println(ligne);
}