mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
FIX: CRSF no active serial port and telem causing hardfault (#12496)
* FIX: no active serial port and telem causing hardfault
This commit is contained in:
parent
6d4921e5bf
commit
43f1c74c64
1 changed files with 3 additions and 1 deletions
|
@ -608,7 +608,9 @@ void crsfRxSendTelemetryData(void)
|
||||||
{
|
{
|
||||||
// if there is telemetry data to write
|
// if there is telemetry data to write
|
||||||
if (telemetryBufLen > 0) {
|
if (telemetryBufLen > 0) {
|
||||||
serialWriteBuf(serialPort, telemetryBuf, telemetryBufLen);
|
if (serialPort != NULL) {
|
||||||
|
serialWriteBuf(serialPort, telemetryBuf, telemetryBufLen);
|
||||||
|
}
|
||||||
telemetryBufLen = 0; // reset telemetry buffer
|
telemetryBufLen = 0; // reset telemetry buffer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue