Closed
Description
Board
ESP32 Dev Module
Device Description
Custom PCB
Hardware Configuration
A lot of stuff
Version
latest master (checkout manually)
IDE Name
Platformio
Operating System
Macos
Flash frequency
80
PSRAM enabled
no
Upload speed
115200
Description
I'm trying to use the new feature of v2.0.3
After setting TX buffer size with HardwareSerial::setTxBufferSize
the function HardwareSerial::availableForWrite
still always return 128
keeping track only of the free space in the TxFIFO without accounting of the newly allocated buffer for transmission
Sketch
#define NO_GLOBAL_SERIAL
#include <Arduino.h>
HardwareSerial SerialTest{1};
void setup(){
SerialTest.setRxBufferSize(4096);
SerialTest.setTxBufferSize(4096);
SerialTest.begin(9600);
}
void loop() {
log_e("availableForWrite:\t%d\n", SerialTest.availableForWrite());
}
Debug Message
availableForWrite: 128
availableForWrite: 128
availableForWrite: 128
availableForWrite: 128
availableForWrite: 128
availableForWrite: 128
....
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Type
Projects
Status
Done