Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
deltaflight
deltaflight
Commits
ab283612
Commit
ab283612
authored
Apr 18, 2021
by
Pawel Spychalski (DzikuVx)
Browse files
Fix compilation (again)
parent
dc7a002b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/fc/fc_core.c
View file @
ab283612
...
...
@@ -805,6 +805,7 @@ void processRx(timeUs_t currentTimeUs)
// Function for loop trigger
void
FAST_CODE
taskGyro
(
timeUs_t
currentTimeUs
)
{
UNUSED
(
currentTimeUs
);
// getTaskDeltaTime() returns delta time frozen at the moment of entering the scheduler. currentTime is frozen at the very same point.
// To make busy-waiting timeout work we need to account for time spent within busy-waiting loop
const
timeDelta_t
currentDeltaTime
=
getTaskDeltaTime
(
TASK_SELF
);
...
...
@@ -816,8 +817,6 @@ void FAST_CODE taskGyro(timeUs_t currentTimeUs) {
if
(
sensors
(
SENSOR_OPFLOW
))
{
opflowGyroUpdateCallback
(
currentDeltaTime
);
}
#else
UNUSED
(
currentTimeUs
);
#endif
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment