File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2424namespace mbed {
2525
2626SerialBase::SerialBase (PinName tx, PinName rx, int baud) :
27+ _init_func (&SerialBase::_init),
2728#if DEVICE_SERIAL_ASYNCH
2829 _thunk_irq (this ),
2930#endif
3031 _baud (baud),
3132 _tx_pin (tx),
32- _rx_pin (rx),
33- _init_func (&SerialBase::_init)
33+ _rx_pin (rx)
3434{
3535 // No lock needed in the constructor
3636
3737 (this ->*_init_func)();
3838}
3939
4040SerialBase::SerialBase (const serial_pinmap_t &static_pinmap, int baud) :
41+ _init_func (&SerialBase::_init_direct),
4142#if DEVICE_SERIAL_ASYNCH
4243 _thunk_irq (this ),
4344#endif
4445 _baud (baud),
4546 _tx_pin (static_pinmap.tx_pin),
4647 _rx_pin (static_pinmap.rx_pin),
47- _static_pinmap (&static_pinmap),
48- _init_func (&SerialBase::_init_direct)
48+ _static_pinmap (&static_pinmap)
4949{
5050 // No lock needed in the constructor
5151
You can’t perform that action at this time.
0 commit comments