1
0
Fork 0
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:
jflyper 2019-08-13 08:47:37 +09:00
parent b310f9b348
commit bb8e0686c1
4 changed files with 4 additions and 4 deletions

View file

@ -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];
}

View file

@ -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);

View file

@ -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;
}

View file

@ -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) {