Skip to content

Conversation

@bjoernQ
Copy link
Contributor

@bjoernQ bjoernQ commented Aug 10, 2023

This adds an option to configure

  • Country Code
  • MTU
  • HEAP-SIZE
  • internal scheduler's tick rate

Probably seems odd we keep the big-heap feature for now. It is to not immediately and unnecessarily break esp-mbedtls and depending code

#[allow(unused)]
#[cfg(all(coex, not(feature = "big-heap")))]
const HEAP_SIZE: usize = 64 * 1024;
const DEFAULT_HEAP_SIZE: usize = 64 * 1024;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coex check seems redundant on this one and above (one is coex & big heap, other is !coex & big_heap, both with the same value), in case you want to simplify :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true - most probably I will remove the big-heap feature and only have two defaults which somehow work everywhere ... we don't need to find the one best value (which doesn't exist for every one and every situation) anymore since it's now configurable

@bjoernQ bjoernQ marked this pull request as ready for review August 10, 2023 15:56
@bjoernQ bjoernQ force-pushed the feature/more-configs branch from 7664167 to a181fcf Compare August 11, 2023 09:03
Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@bjoernQ bjoernQ merged commit 87687c8 into main Aug 11, 2023
@bjoernQ bjoernQ deleted the feature/more-configs branch August 11, 2023 09:19
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