-
-
Notifications
You must be signed in to change notification settings - Fork 738
Larger Buffer RingBuffer.h #314
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
Conversation
The increase of the buffer size to handle larger streams like the ones from GPS.
|
why not let user define his own buffer size?
|
|
@cmaglie @sandeepmistry Any comments on this? |
|
@d3str0y3rport sorry, i made a mistake:
|
|
Can you also show how and where you would define a different value? You'd have to define SERIAL_BUFFER_SIZE in the right place. And what about if you have an application with multiple modules (one .ino and one or more .cpp)? Each module may or may not include Arduino.h (or Uart.h, or RingBuffer.h). If you don't set the same SERIAL_BUFFER_SIZE everywhere then you're screwed. |
|
Another note. Each Uart has 2 ringbuffers. That means the data size increases quite a bit if the variant has 3 or 4 Serial devices. |
|
Closing in favour of: |
This would have to be changed in the boards.txt entry of the variant you are using. |
Introduce digital pin definitions
The increase of the buffer size to handle larger streams like the ones from GPS.