From 857aa09c3db7abe8a96bfc267b44dfd2bffb2c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Sun, 28 Jan 2018 19:31:41 +0100 Subject: [PATCH] Fix left out reference to SERIAL_RX_BUFFER_SIZE --- code/espurna/settings.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/espurna/settings.ino b/code/espurna/settings.ino index f5c9dda3..48e2a0e3 100644 --- a/code/espurna/settings.ino +++ b/code/espurna/settings.ino @@ -435,7 +435,7 @@ void settingsLoop() { while (SERIAL_RX_PORT.available() > 0) { char rc = Serial.read(); _serial_rx_buffer[_serial_rx_pointer++] = rc; - if ((_serial_rx_pointer == SERIAL_RX_BUFFER_SIZE) || (rc == 10)) { + if ((_serial_rx_pointer == TERMINAL_BUFFER_SIZE) || (rc == 10)) { settingsInject(_serial_rx_buffer, (size_t) _serial_rx_pointer); _serial_rx_pointer = 0; }