mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #12282 from mprse/fix_for_issue_12268
Fix for issue #12268 (SerialBase.cpp: fix initialization list)pull/12307/head
commit
cb53825874
|
@ -24,13 +24,13 @@
|
|||
namespace mbed {
|
||||
|
||||
SerialBase::SerialBase(PinName tx, PinName rx, int baud) :
|
||||
_init_func(&SerialBase::_init),
|
||||
#if DEVICE_SERIAL_ASYNCH
|
||||
_thunk_irq(this),
|
||||
#endif
|
||||
_baud(baud),
|
||||
_tx_pin(tx),
|
||||
_rx_pin(rx),
|
||||
_init_func(&SerialBase::_init)
|
||||
_rx_pin(rx)
|
||||
{
|
||||
// No lock needed in the constructor
|
||||
|
||||
|
@ -38,14 +38,14 @@ SerialBase::SerialBase(PinName tx, PinName rx, int baud) :
|
|||
}
|
||||
|
||||
SerialBase::SerialBase(const serial_pinmap_t &static_pinmap, int baud) :
|
||||
_init_func(&SerialBase::_init_direct),
|
||||
#if DEVICE_SERIAL_ASYNCH
|
||||
_thunk_irq(this),
|
||||
#endif
|
||||
_baud(baud),
|
||||
_tx_pin(static_pinmap.tx_pin),
|
||||
_rx_pin(static_pinmap.rx_pin),
|
||||
_static_pinmap(&static_pinmap),
|
||||
_init_func(&SerialBase::_init_direct)
|
||||
_static_pinmap(&static_pinmap)
|
||||
{
|
||||
// No lock needed in the constructor
|
||||
|
||||
|
|
Loading…
Reference in New Issue