1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 06:45:16 +03:00

Fixes from review.

This commit is contained in:
Michael Keller 2018-06-14 12:24:30 +12:00
parent 906a4bcb78
commit 1aa78531f7

View file

@ -386,7 +386,7 @@ uint32_t getDshotHz(motorPwmProtocolTypes_e pwmProtocolType)
} }
} }
FAST_RAM bool pwmIsProcessingDshotCommand(void) FAST_CODE bool pwmIsProcessingDshotCommand(void)
{ {
return dshotCommandControl.nextCommandAt; return dshotCommandControl.nextCommandAt;
} }
@ -458,7 +458,7 @@ uint8_t pwmGetDshotCommand(uint8_t index)
return dshotCommandControl.command[index]; return dshotCommandControl.command[index];
} }
bool FAST_CODE_NOINLINE pwmProcessDshotCommand(uint8_t motorCount) FAST_CODE_NOINLINE bool pwmProcessDshotCommand(uint8_t motorCount)
{ {
timeUs_t timeNowUs = micros(); timeUs_t timeNowUs = micros();
if (cmpTimeUs(timeNowUs, dshotCommandControl.nextCommandAt) < 0) { if (cmpTimeUs(timeNowUs, dshotCommandControl.nextCommandAt) < 0) {