Skip to content

Commit

Permalink
changed SOC_I2C_NUM to SOC_HP_I2C_NUM
Browse files Browse the repository at this point in the history
  • Loading branch information
sivar2311 committed Oct 12, 2024
1 parent e27a050 commit 8d2055b
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 8d2055b

Please sign in to comment.