We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 175319e commit d6efbaaCopy full SHA for d6efbaa
cores/arduino/UARTClass.cpp
@@ -219,7 +219,7 @@ void UARTClass::IrqHandler( void )
219
{
220
if(_tx_buffer->_iTail != _tx_buffer->_iHead)
221
222
- int end = (_tx_buffer->_iTail < _tx_buffer->_iHead) ? _tx_buffer->_iHead:SERIAL_BUFFER_SIZE;
+ int end = (_tx_buffer->_iTail < _tx_buffer->_iHead) ? _tx_buffer->_iHead:UART_BUFFER_SIZE;
223
int l = min(end - _tx_buffer->_iTail, UART_FIFO_SIZE);
224
uart_fifo_fill(CONFIG_UART_CONSOLE_INDEX, _tx_buffer->_aucBuffer+_tx_buffer->_iTail, l);
225
_tx_buffer->_iTail = (_tx_buffer->_iTail+l)%UART_BUFFER_SIZE;
0 commit comments