mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 13:16:32 +00:00
Add buffer overrun message on SerialBridge
Add buffer overrun message on SerialBridge (#11448)
This commit is contained in:
parent
0331e47e4c
commit
bacf80a076
@ -1565,6 +1565,10 @@ void SerialInput(void)
|
||||
TasmotaGlobal.serial_in_buffer[TasmotaGlobal.serial_in_byte_counter] = 0; // Serial data completed
|
||||
bool assume_json = (!Settings.flag.mqtt_serial_raw && (TasmotaGlobal.serial_in_buffer[0] == '{'));
|
||||
|
||||
if (serial_buffer_overrun) {
|
||||
AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_COMMAND "Serial buffer overrun"));
|
||||
}
|
||||
|
||||
Response_P(PSTR("{\"" D_JSON_SERIALRECEIVED "\":"));
|
||||
if (assume_json) {
|
||||
ResponseAppend_P(TasmotaGlobal.serial_in_buffer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user