Skip to content

Commit

Permalink
[bugfix] fix i2c bus clock (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaojingqi23 authored May 23, 2024
1 parent 629e5e5 commit 4ccac0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/Wire/src/Wire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ bool TwoWire::begin(int8_t sclPin, int8_t sdaPin, uint32_t frequency)

_sclPin = sclPin;
_sdaPin = sdaPin;
_clockFreq = frequency;
// _clockFreq = frequency;

if((sclPin < 0) || (sdaPin < 0)) {
LOG_E("Invaild sclPin(%d) or sdaPin(%d)\n", sclPin, sdaPin);
Expand Down

0 comments on commit 4ccac0f

Please sign in to comment.