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 0faf9ab commit 5000a58Copy full SHA for 5000a58
src/serial/SerialDispatcher.cpp
@@ -187,12 +187,12 @@ void SerialDispatcher::threadFunc()
187
std::end (_thread_customer_list),
188
[this](ThreadCustomerData & d)
189
{
190
- if (!d.block_tx_buffer)
+ if (d.block_tx_buffer)
191
+ return;
192
+
193
+ while(d.tx_buffer.available())
194
- while(d.tx_buffer.available())
- {
- _serial.write(d.tx_buffer.read_char());
195
- }
+ _serial.write(d.tx_buffer.read_char());
196
}
197
});
198
0 commit comments