Allows RX buffer to be 512 instead of 128 in stable

This commit is contained in:
luc lebosse 2016-11-17 17:43:42 +01:00
parent 3dae051e0c
commit eb8dd002fe
2 changed files with 4 additions and 0 deletions

View File

@ -100,6 +100,8 @@
#endif
#endif
//Serial rx buffer size is 256 but can be extended
#define SERIAL_RX_BUFFER_SIZE 512
//DEBUG Flag do not do this when connected to printer !!!
//#define DEBUG_ESP3D
//#define DEBUG_OUTPUT_SPIFFS

View File

@ -96,6 +96,7 @@ void setup()
if(breset_config) {
//update EEPROM with default settings
Serial.begin(DEFAULT_BAUD_RATE);
Serial.setRxBufferSize(SERIAL_RX_BUFFER_SIZE);
delay(2000);
Serial.println(F("M117 ESP EEPROM reset"));
#ifdef DEBUG_ESP3D
@ -116,6 +117,7 @@ void setup()
#endif
//setup serial
Serial.begin(baud_rate);
Serial.setRxBufferSize(SERIAL_RX_BUFFER_SIZE);
delay(1000);
LOG("Serial Set\r\n");
wifi_config.baud_rate=baud_rate;