mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 03:20:00 +03:00
Add NULL check for vTable->decodeTelemetry (#14321)
This commit is contained in:
parent
28848d1324
commit
ad58b69c20
1 changed files with 3 additions and 1 deletions
|
@ -109,7 +109,9 @@ void motorWriteAll(float *values)
|
|||
// Perform the decode of the last data received
|
||||
// New data will be received once the send of motor data, triggered above, completes
|
||||
#if defined(USE_DSHOT) && defined(USE_DSHOT_TELEMETRY)
|
||||
motorDevice.vTable->decodeTelemetry();
|
||||
if (motorDevice.vTable->decodeTelemetry) {
|
||||
motorDevice.vTable->decodeTelemetry();
|
||||
}
|
||||
#endif
|
||||
|
||||
// Update the motor data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue