mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Rename overlooked Dshot command function name
This commit is contained in:
parent
b310f9b348
commit
bb8e0686c1
4 changed files with 4 additions and 4 deletions
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue