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 24
24
namespace mbed {
25
25
26
26
SerialBase::SerialBase (PinName tx, PinName rx, int baud) :
27
+ _init_func (&SerialBase::_init),
27
28
#if DEVICE_SERIAL_ASYNCH
28
29
_thunk_irq (this ),
29
30
#endif
30
31
_baud (baud),
31
32
_tx_pin (tx),
32
- _rx_pin (rx),
33
- _init_func (&SerialBase::_init)
33
+ _rx_pin (rx)
34
34
{
35
35
// No lock needed in the constructor
36
36
37
37
(this ->*_init_func)();
38
38
}
39
39
40
40
SerialBase::SerialBase (const serial_pinmap_t &static_pinmap, int baud) :
41
+ _init_func (&SerialBase::_init_direct),
41
42
#if DEVICE_SERIAL_ASYNCH
42
43
_thunk_irq (this ),
43
44
#endif
44
45
_baud (baud),
45
46
_tx_pin (static_pinmap.tx_pin),
46
47
_rx_pin (static_pinmap.rx_pin),
47
- _static_pinmap (&static_pinmap),
48
- _init_func (&SerialBase::_init_direct)
48
+ _static_pinmap (&static_pinmap)
49
49
{
50
50
// No lock needed in the constructor
51
51
You can’t perform that action at this time.
0 commit comments