mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 19:40:31 +03:00
Update src/main/drivers/dshot.c
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
This commit is contained in:
parent
3824516a31
commit
907e7db9c1
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ static uint32_t dshot_decode_eRPM_telemetry_value(uint16_t value)
|
||||||
static void dshot_decode_telemetry_value(uint8_t motorIndex, uint32_t *pDecoded, dshotTelemetryType_t *pType)
|
static void dshot_decode_telemetry_value(uint8_t motorIndex, uint32_t *pDecoded, dshotTelemetryType_t *pType)
|
||||||
{
|
{
|
||||||
uint16_t value = dshotTelemetryState.motorState[motorIndex].rawValue;
|
uint16_t value = dshotTelemetryState.motorState[motorIndex].rawValue;
|
||||||
bool isEdtEnabled = (dshotTelemetryState.motorState[motorIndex].telemetryTypes & DSHOT_EXTENDED_TELEMETRY_MASK) != 0 ? true : false;
|
bool isEdtEnabled = (dshotTelemetryState.motorState[motorIndex].telemetryTypes & DSHOT_EXTENDED_TELEMETRY_MASK) != 0;
|
||||||
|
|
||||||
// https://github.com/bird-sanctuary/extended-dshot-telemetry
|
// https://github.com/bird-sanctuary/extended-dshot-telemetry
|
||||||
// Extract telemetry type field and check for eRPM conditions in one operation
|
// Extract telemetry type field and check for eRPM conditions in one operation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue