Skip to content

Conversation

@tridge
Copy link
Contributor

@tridge tridge commented Nov 26, 2025

the AP::panic() isn't really very useful, and this costs us 15k of flash

@tpwrules
Copy link
Contributor

Just doing an infinite loop if this is called saves 13k still.

The string description for the asserts was costing us a lot of flash
for not a lot of gain. By not displaying those strings in production
builds we save about 11k
@tridge tridge force-pushed the pr-lwip-assert-sitl-only branch from 3ffcacd to 041ba6e Compare November 26, 2025 23:55
@tridge
Copy link
Contributor Author

tridge commented Nov 26, 2025

Just doing an infinite loop if this is called saves 13k still.

I've changed it to keep using panic (which is an infinite loop with delay) but to not pass the string descriptions. That saves us 11k

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants