Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_HAL_ChibiOS: Scheduler: clean up expected delay functions #28972

Merged
merged 2 commits into from
Dec 31, 2024

Conversation

tpwrules
Copy link
Contributor

The feature to expect delays from the main thread never worked (since introduction in #14063 ) and hasn't been used since #20442 . Remove it to gain back some flash and reduce complexity.

Checked that parameter and mission ops still work on Kakute H7 Mini.

This reverts commit 8dabd6c.

Setting up expected delays from a non-main thread never worked properly
due to the redundant main thread check, and isn't used today.
EXPECT_DELAY_MS was used in direct contravention of the comment so it
must be okay. Even when it wasn't and the comment was accurate,
expecting a delay off the main thread never worked properly anyway.
@peterbarker
Copy link
Contributor

Won't this cause issues when we erase flash pages? We'll no longer be expecting the long delay that that introduces?

@tpwrules
Copy link
Contributor Author

tpwrules commented Dec 30, 2024

The off-main-thread expectation never worked in the first place, there's no change in behavior here :)

@tridge tridge merged commit 9d7024f into ArduPilot:master Dec 31, 2024
44 checks passed
@tpwrules tpwrules deleted the pr/chibi-expect-cleanup branch December 31, 2024 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants