Add HASP_CONSOLE_BUFFER define

This commit is contained in:
fvanroie 2021-01-07 21:36:34 +01:00
parent 71c14c96c8
commit 7b1ab0d9f2
3 changed files with 5 additions and 2 deletions

View File

@ -94,6 +94,7 @@ build_flags =
-D PIOENV=${PIOENV} -D PIOENV=${PIOENV}
-D HTTP_UPLOAD_BUFLEN=1024 ; lower http upload buffer -D HTTP_UPLOAD_BUFLEN=1024 ; lower http upload buffer
-D MQTT_MAX_PACKET_SIZE=2048 ; longer PubSubClient messages -D MQTT_MAX_PACKET_SIZE=2048 ; longer PubSubClient messages
-D HASP_CONSOLE_BUFFER=220 ; maximum length of a console/telnet command
-D NO_GLOBAL_HTTPUPDATE ; dont instantiate httpUpdate -D NO_GLOBAL_HTTPUPDATE ; dont instantiate httpUpdate
; -- lvgl build options ----------------------------- ; -- lvgl build options -----------------------------
-D LV_MEM_SIZE=61440U ; 60kB lvgl memory -D LV_MEM_SIZE=61440U ; 60kB lvgl memory
@ -137,6 +138,7 @@ hspi =
build_flags= build_flags=
-D HTTP_UPLOAD_BUFLEN=640 ; lower http upload buffer -D HTTP_UPLOAD_BUFLEN=640 ; lower http upload buffer
-D MQTT_MAX_PACKET_SIZE=1024 ; longer PubSubClient messages -D MQTT_MAX_PACKET_SIZE=1024 ; longer PubSubClient messages
-D HASP_CONSOLE_BUFFER=220 ; maximum length of a console/telnet command
-D ATOMIC_FS_UPDATE ; enabled compressed ota updates -D ATOMIC_FS_UPDATE ; enabled compressed ota updates
-D NO_GLOBAL_HTTPUPDATE ; dont instantiate httpUpdate -D NO_GLOBAL_HTTPUPDATE ; dont instantiate httpUpdate
; -- lwIP Variant ----------------------------------- ; -- lwIP Variant -----------------------------------
@ -164,6 +166,7 @@ lib_deps =
build_flags= build_flags=
-I include/stm32f4 -I include/stm32f4
-D MQTT_MAX_PACKET_SIZE=2048 ; longer PubSubClient messages -D MQTT_MAX_PACKET_SIZE=2048 ; longer PubSubClient messages
-D HASP_CONSOLE_BUFFER=220 ; maximum length of a console/telnet command
-D IRAM_ATTR= ; No IRAM_ATTR available on STM32 -D IRAM_ATTR= ; No IRAM_ATTR available on STM32
-D ICACHE_RAM_ATTR= -D ICACHE_RAM_ATTR=
-D STM32 -D STM32

View File

@ -89,7 +89,7 @@ uint16_t debugSerialBaud = SERIAL_SPEED / 10; // Multiplied by 10
bool debugSerialStarted = false; bool debugSerialStarted = false;
bool debugAnsiCodes = true; bool debugAnsiCodes = true;
ConsoleInput debugConsole(&Serial, 220); ConsoleInput debugConsole(&Serial, HASP_CONSOLE_BUFFER);
//#define TERM_COLOR_Black "\u001b[30m" //#define TERM_COLOR_Black "\u001b[30m"
#define TERM_COLOR_GRAY "\e[37m" #define TERM_COLOR_GRAY "\e[37m"

View File

@ -244,7 +244,7 @@ void telnetSetup()
telnetServer->setNoDelay(true); telnetServer->setNoDelay(true);
telnetServer->begin(); telnetServer->begin();
telnetConsole = new ConsoleInput(&telnetClient, 220); telnetConsole = new ConsoleInput(&telnetClient, HASP_CONSOLE_BUFFER);
if(telnetConsole != NULL) { if(telnetConsole != NULL) {
telnetConsole->setLineCallback(telnetProcessLine); telnetConsole->setLineCallback(telnetProcessLine);
Log.trace(TAG_TELN, F("Remote console started")); Log.trace(TAG_TELN, F("Remote console started"));