We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 980a797 + f8b124b commit 078f1f5Copy full SHA for 078f1f5
cores/arduino/HardwareSerial.cpp
@@ -70,14 +70,13 @@ int HardwareSerial::_tx_complete_irq(serial_t* obj)
70
{
71
// If interrupts are enabled, there must be more data in the output
72
// buffer. Send the next byte
73
- unsigned char c = obj->tx_buff[obj->tx_tail];
74
obj->tx_tail = (obj->tx_tail + 1) % SERIAL_TX_BUFFER_SIZE;
75
76
if (obj->tx_head == obj->tx_tail) {
77
return -1;
78
}
79
80
- return c;
+ return 0;
81
82
83
// Public Methods //////////////////////////////////////////////////////////////
0 commit comments