mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Fixed Dshot command check on non-F7.
This commit is contained in:
parent
11d8171c36
commit
906a4bcb78
2 changed files with 9 additions and 7 deletions
|
@ -386,6 +386,11 @@ uint32_t getDshotHz(motorPwmProtocolTypes_e pwmProtocolType)
|
|||
}
|
||||
}
|
||||
|
||||
FAST_RAM bool pwmIsProcessingDshotCommand(void)
|
||||
{
|
||||
return dshotCommandControl.nextCommandAt;
|
||||
}
|
||||
|
||||
void pwmWriteDshotCommand(uint8_t index, uint8_t motorCount, uint8_t command, bool blocking)
|
||||
{
|
||||
timeUs_t timeNowUs = micros();
|
||||
|
@ -448,11 +453,6 @@ void pwmWriteDshotCommand(uint8_t index, uint8_t motorCount, uint8_t command, bo
|
|||
}
|
||||
}
|
||||
|
||||
FAST_RAM bool pwmIsProcessingDshotCommand(void)
|
||||
{
|
||||
return dshotCommandControl.nextCommandAt;
|
||||
}
|
||||
|
||||
uint8_t pwmGetDshotCommand(uint8_t index)
|
||||
{
|
||||
return dshotCommandControl.command[index];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue