You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eliminate dedicated status variable is_reader because checking whether or not the receive ringbuffer has been allocated contains the same status information.
Copy file name to clipboardExpand all lines: src/serial/SerialDispatcher.h
-1
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,6 @@ class SerialDispatcher : public arduino::HardwareSerial
74
74
osThreadId_t thread_id;
75
75
arduino::RingBuffer tx_buffer;
76
76
bool block_tx_buffer;
77
-
bool is_reader; /* This thread has expressed interest to read from Serial via a call to either read() or available(). */
78
77
mbed::SharedPtr<arduino::RingBuffer> rx_buffer; /* Only when a thread has expressed interested to read from serial a receive ringbuffer is allocated. */
0 commit comments