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

Default to large max payload size #196

Merged
merged 1 commit into from
Sep 16, 2022
Merged

Default to large max payload size #196

merged 1 commit into from
Sep 16, 2022

Conversation

TMRh20
Copy link
Member

@TMRh20 TMRh20 commented Sep 16, 2022

Got sick of having to redefine this on Linux devices. I'm not sure if we should redefine this for other devices like ESP32, RPi Pico etc. but I think it needs to be done for Linux.

- Got sick of having to redefine this on linux devices
@2bndy5
Copy link
Member

2bndy5 commented Sep 16, 2022

I'm not sure if we should redefine this for other devices like ESP32, RPi Pico etc. but I think it needs to be done for Linux

If there's a way to get the target chip's memory capacity, then it would be cleaner to use that as the determining factor. Otherwise, I think it would get a bit hairy to use platform-specific macro definitions (like ARDUINO_ARCH_ESP32) because there are so many variations of the ESP32 chips now. It isn't guaranteed that all ESP32 chips have the same amount of memory.

Copy link
Member

@2bndy5 2bndy5 left a comment

Choose a reason for hiding this comment

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

I'm trusting your judgment and expertise. It seems like you already tested this where it counts.

@TMRh20 TMRh20 merged commit fc2fc50 into master Sep 16, 2022
@Avamander Avamander deleted the maxPayloadSize branch September 16, 2022 14:56
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.

2 participants