mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
fix(uart): always write to Serial2 (availableForWrite returns 1 on SerialUART)
This commit is contained in:
1 parent
50c1eb05b1
commit
f2b9509c25
1 file changed
+1
-3
+1
-3
@@ -810,10 +810,8 @@ void traiterTelemetrieCRSF() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void emettreLigneCockpit(const char* ligne) {
|
void emettreLigneCockpit(const char* ligne) {
|
||||||
|
Serial2.println(ligne);
|
||||||
int needed = (int)strlen(ligne) + 2;
|
int needed = (int)strlen(ligne) + 2;
|
||||||
if (Serial2.availableForWrite() >= needed) {
|
|
||||||
Serial2.println(ligne);
|
|
||||||
}
|
|
||||||
if (cockpitEchoUSB && Serial && Serial.availableForWrite() >= needed) {
|
if (cockpitEchoUSB && Serial && Serial.availableForWrite() >= needed) {
|
||||||
Serial.println(ligne);
|
Serial.println(ligne);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user