File tree 2 files changed +1
-14
lines changed
2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -33,18 +33,6 @@ static const uint8_t MASTER_ADDRESS = 0x01;
33
33
34
34
// Constructors ////////////////////////////////////////////////////////////////
35
35
36
- TwoWire::TwoWire ()
37
- {
38
- memset ((void *)&_i2c, 0 , sizeof (_i2c));
39
- _i2c.sda = digitalPinToPinName (SDA);
40
- _i2c.scl = digitalPinToPinName (SCL);
41
-
42
- txBuffer = nullptr ;
43
- txBufferAllocated = 0 ;
44
- rxBuffer = nullptr ;
45
- rxBufferAllocated = 0 ;
46
- }
47
-
48
36
TwoWire::TwoWire (uint32_t sda, uint32_t scl)
49
37
{
50
38
memset ((void *)&_i2c, 0 , sizeof (_i2c));
Original file line number Diff line number Diff line change @@ -76,8 +76,7 @@ class TwoWire : public Stream {
76
76
void recoverBus (void );
77
77
78
78
public:
79
- TwoWire ();
80
- TwoWire (uint32_t sda, uint32_t scl);
79
+ TwoWire (uint32_t sda = SDA, uint32_t scl = SCL);
81
80
~TwoWire ();
82
81
// setSCL/SDA have to be called before begin()
83
82
void setSCL (uint32_t scl)
You can’t perform that action at this time.
0 commit comments