-
-
Notifications
You must be signed in to change notification settings - Fork 7k
RX and TX Buffers for HardwareSerial are hard coded in size and equal length #1929
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
Comments
due to #1870 and #1856 sizes bigger than 255 have no use. |
as fixed in #1955 |
@jantje But how do you actually use it with Arduino IDE? Would #define SERIAL_TX_BUFFER_SIZE 32
#include <Arduino.h> at the top of a |
@mrts, that won't work, since those defines will not be in effect when HardwareSerial0.cpp, which defines the actual buffers, is compiled. I think the way to do this right now, is to modify HardwareSerial.h. |
@jantje, right, that's what I expected. Thanks for clarifying! |
you can also modify platform.txt or boards.txt |
Thanks for the tip! |
You can also create a menu using boards.txt, with each option in the menu passing different -Dxyz flags to the compiler. |
How i can change buffer of arduino due? |
Hi
I have many arduino sketches that send out lots of data and hardly receives any data.
I really would like to increase the TX buffer but not the RX buffer. Therefore I would like to modify the HardwareSerial class where it states:
to
this allows to change the size by using a define and allows for different sizes for RX and TX buffer.
and make all subsequent changes.
Would a change like this be accepted?
jantje
The text was updated successfully, but these errors were encountered: