Skip to content

Commit 619ca54

Browse files
Remove lock from enable_* function overrides
1 parent 0214a15 commit 619ca54

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/source/UnbufferedSerial.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,14 @@ short UnbufferedSerial::poll(short events) const
101101

102102
int UnbufferedSerial::enable_input(bool enabled)
103103
{
104-
lock();
105104
SerialBase::enable_input(enabled);
106-
unlock();
107105

108106
return 0;
109107
}
110108

111109
int UnbufferedSerial::enable_output(bool enabled)
112110
{
113-
lock();
114111
SerialBase::enable_output(enabled);
115-
unlock();
116112

117113
return 0;
118114
}

0 commit comments

Comments
 (0)