8000 fix for reinit · stickbreaker/arduino-esp32@c6a44d7 · GitHub
[go: up one dir, main page]

Skip to content

Commit c6a44d7

Browse files
authored
fix for reinit
had to move the hardware init code out of begin, so that I could call it without destroying queued transactions
1 parent f5b027c commit c6a44d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/Wire/src/Wire.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class TwoWire: public Stream
6565
i2c_err_t processQueue(uint32_t *readCount);
6666
uint16_t _timeOutMillis;
6767
bool _dump;
68+
void initHardware(int sdaPin, int sclPin, uint32_t frequency);
6869

6970
public:
7071
TwoWire(uint8_t bus_num);

0 commit comments

Comments
 (0)
0