mirror of https://github.com/ARMmbed/mbed-os.git
Remove lock from enable_* function overrides
parent
0214a156e7
commit
619ca54735
|
@ -101,18 +101,14 @@ short UnbufferedSerial::poll(short events) const
|
||||||
|
|
||||||
int UnbufferedSerial::enable_input(bool enabled)
|
int UnbufferedSerial::enable_input(bool enabled)
|
||||||
{
|
{
|
||||||
lock();
|
|
||||||
SerialBase::enable_input(enabled);
|
SerialBase::enable_input(enabled);
|
||||||
unlock();
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int UnbufferedSerial::enable_output(bool enabled)
|
int UnbufferedSerial::enable_output(bool enabled)
|
||||||
{
|
{
|
||||||
lock();
|
|
||||||
SerialBase::enable_output(enabled);
|
SerialBase::enable_output(enabled);
|
||||||
unlock();
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue