Skip to content

Commit

Permalink
Add buffer overrun message on SerialBridge
Browse files Browse the repository at this point in the history
Add buffer overrun message on SerialBridge (#11448)
  • Loading branch information
arendst committed Mar 31, 2021
1 parent 0331e47 commit bacf80a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasmota/support_tasmota.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bacf80a

Please sign in to comment.