We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SOC_I2C_NUM
SOC_HP_I2C_NUM
1 parent 81d2cbc commit 3733c87Copy full SHA for 3733c87
libraries/Wire/src/Wire.cpp
@@ -646,8 +646,8 @@ void TwoWire::onRequestService(uint8_t num, void *arg) {
646
#endif /* SOC_I2C_SUPPORT_SLAVE */
647
648
TwoWire Wire = TwoWire(0);
649
-#if SOC_I2C_NUM > 1
+#if SOC_HP_I2C_NUM > 1
650
TwoWire Wire1 = TwoWire(1);
651
-#endif /* SOC_I2C_NUM */
+#endif /* SOC_HP_I2C_NUM */
652
653
#endif /* SOC_I2C_SUPPORTED */
libraries/Wire/src/Wire.h
@@ -144,9 +144,9 @@ class TwoWire : public HardwareI2C {
144
};
145
146
extern TwoWire Wire;
147
148
extern TwoWire Wire1;
149
150
151
152
#endif /* TwoWire_h */
0 commit comments