diff --git a/src/main/drivers/dshot_command.c b/src/main/drivers/dshot_command.c index dce9dc724d..d83b45a6f5 100644 --- a/src/main/drivers/dshot_command.c +++ b/src/main/drivers/dshot_command.c @@ -229,7 +229,7 @@ void dshotCommandWrite(uint8_t index, uint8_t motorCount, uint8_t command, bool } } -uint8_t pwmGetDshotCommand(uint8_t index) +uint8_t dshotCommandGetCurrent(uint8_t index) { return commandQueue[commandQueueTail].command[index]; } diff --git a/src/main/drivers/dshot_command.h b/src/main/drivers/dshot_command.h index 86e6774eed..0d2db40f98 100644 --- a/src/main/drivers/dshot_command.h +++ b/src/main/drivers/dshot_command.h @@ -66,5 +66,5 @@ void dshotCommandWrite(uint8_t index, uint8_t motorCount, uint8_t command, bool void dshotSetPidLoopTime(uint32_t pidLoopTime); bool dshotCommandQueueEmpty(void); bool dshotCommandIsProcessing(void); -uint8_t pwmGetDshotCommand(uint8_t index); +uint8_t dshotCommandGetCurrent(uint8_t index); bool dshotCommandOutputIsEnabled(uint8_t motorCount); diff --git a/src/main/drivers/pwm_output_dshot_hal_hal.c b/src/main/drivers/pwm_output_dshot_hal_hal.c index 97bb00efae..e7664660f8 100644 --- a/src/main/drivers/pwm_output_dshot_hal_hal.c +++ b/src/main/drivers/pwm_output_dshot_hal_hal.c @@ -151,7 +151,7 @@ FAST_CODE void pwmWriteDshotInt(uint8_t index, uint16_t value) /*If there is a command ready to go overwrite the value and send that instead*/ if (dshotCommandIsProcessing()) { - value = pwmGetDshotCommand(index); + value = dshotCommandGetCurrent(index); if (value) { motor->protocolControl.requestTelemetry = true; } diff --git a/src/main/drivers/pwm_output_dshot_shared.c b/src/main/drivers/pwm_output_dshot_shared.c index 93e4c6cbec..0c800ffd30 100644 --- a/src/main/drivers/pwm_output_dshot_shared.c +++ b/src/main/drivers/pwm_output_dshot_shared.c @@ -111,7 +111,7 @@ FAST_CODE void pwmWriteDshotInt(uint8_t index, uint16_t value) /*If there is a command ready to go overwrite the value and send that instead*/ if (dshotCommandIsProcessing()) { - value = pwmGetDshotCommand(index); + value = dshotCommandGetCurrent(index); #ifdef USE_DSHOT_TELEMETRY // reset telemetry debug statistics every time telemetry is enabled if (value == DSHOT_CMD_SIGNAL_LINE_CONTINUOUS_ERPM_TELEMETRY) {