mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
Merge pull request #8168 from jflyper/bfdev-fix-unprotected-useDshotTelemetry
Add missing conditional for useDshotTelemetry
This commit is contained in:
commit
c82c90159e
1 changed files with 2 additions and 0 deletions
|
@ -674,9 +674,11 @@ FAST_CODE uint16_t prepareDshotPacket(motorDmaOutput_t *const motor)
|
|||
csum_data >>= 4;
|
||||
}
|
||||
// append checksum
|
||||
#ifdef USE_DSHOT_TELEMETRY
|
||||
if (useDshotTelemetry) {
|
||||
csum = ~csum;
|
||||
}
|
||||
#endif
|
||||
csum &= 0xf;
|
||||
packet = (packet << 4) | csum;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue