Skip to content

Commit

Permalink
replace outdated wrong SOC_I2C_NUM and use SOC_HP_I2C_NUM (#10452)
Browse files Browse the repository at this point in the history
* SOC_HP_I2C_NUM

* SOC_HP_I2C_NUM
  • Loading branch information
Jason2866 authored Oct 11, 2024
1 parent 81d2cbc commit 3733c87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libraries/Wire/src/Wire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,8 @@ void TwoWire::onRequestService(uint8_t num, void *arg) {
#endif /* SOC_I2C_SUPPORT_SLAVE */

TwoWire Wire = TwoWire(0);
#if SOC_I2C_NUM > 1
#if SOC_HP_I2C_NUM > 1
TwoWire Wire1 = TwoWire(1);
#endif /* SOC_I2C_NUM */
#endif /* SOC_HP_I2C_NUM */

#endif /* SOC_I2C_SUPPORTED */
4 changes: 2 additions & 2 deletions libraries/Wire/src/Wire.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ class TwoWire : public HardwareI2C {
};

extern TwoWire Wire;
#if SOC_I2C_NUM > 1
#if SOC_HP_I2C_NUM > 1
extern TwoWire Wire1;
#endif /* SOC_I2C_NUM */
#endif /* SOC_HP_I2C_NUM */

#endif /* SOC_I2C_SUPPORTED */
#endif /* TwoWire_h */

0 comments on commit 3733c87

Please sign in to comment.