Skip to content

Commit 3733c87

Browse files
authored
replace outdated wrong SOC_I2C_NUM and use SOC_HP_I2C_NUM (#10452)
* SOC_HP_I2C_NUM * SOC_HP_I2C_NUM
1 parent 81d2cbc commit 3733c87

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libraries/Wire/src/Wire.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,8 @@ void TwoWire::onRequestService(uint8_t num, void *arg) {
646646
#endif /* SOC_I2C_SUPPORT_SLAVE */
647647

648648
TwoWire Wire = TwoWire(0);
649-
#if SOC_I2C_NUM > 1
649+
#if SOC_HP_I2C_NUM > 1
650650
TwoWire Wire1 = TwoWire(1);
651-
#endif /* SOC_I2C_NUM */
651+
#endif /* SOC_HP_I2C_NUM */
652652

653653
#endif /* SOC_I2C_SUPPORTED */

libraries/Wire/src/Wire.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ class TwoWire : public HardwareI2C {
144144
};
145145

146146
extern TwoWire Wire;
147-
#if SOC_I2C_NUM > 1
147+
#if SOC_HP_I2C_NUM > 1
148148
extern TwoWire Wire1;
149-
#endif /* SOC_I2C_NUM */
149+
#endif /* SOC_HP_I2C_NUM */
150150

151151
#endif /* SOC_I2C_SUPPORTED */
152152
#endif /* TwoWire_h */

0 commit comments

Comments
 (0)