From 1aa78531f7c411e5acc7a818ed356db2af285cd4 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Thu, 14 Jun 2018 12:24:30 +1200 Subject: [PATCH] Fixes from review. --- src/main/drivers/pwm_output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/drivers/pwm_output.c b/src/main/drivers/pwm_output.c index c7f2942c0..7e7c89a17 100644 --- a/src/main/drivers/pwm_output.c +++ b/src/main/drivers/pwm_output.c @@ -386,7 +386,7 @@ uint32_t getDshotHz(motorPwmProtocolTypes_e pwmProtocolType) } } -FAST_RAM bool pwmIsProcessingDshotCommand(void) +FAST_CODE bool pwmIsProcessingDshotCommand(void) { return dshotCommandControl.nextCommandAt; } @@ -458,7 +458,7 @@ uint8_t pwmGetDshotCommand(uint8_t 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(); if (cmpTimeUs(timeNowUs, dshotCommandControl.nextCommandAt) < 0) {