We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e53584c commit 5c19b45Copy full SHA for 5c19b45
libraries/Wire/Wire.h
@@ -106,11 +106,23 @@ class TwoWire : public Stream
106
//static const uint32_t XMIT_TIMEOUT = 100000;
107
};
108
109
-extern TwoWire Wire;
110
-extern TwoWire Wire1;
111
-extern TwoWire Wire2;
112
-extern TwoWire Wire3;
113
-extern TwoWire Wire4;
114
-extern TwoWire Wire5;
+#if WIRE_INTERFACES_COUNT > 0
+ extern TwoWire Wire;
+#endif
+#if WIRE_INTERFACES_COUNT > 1
+ extern TwoWire Wire1;
115
+#if WIRE_INTERFACES_COUNT > 2
116
+ extern TwoWire Wire2;
117
118
+#if WIRE_INTERFACES_COUNT > 3
119
+ extern TwoWire Wire3;
120
121
+#if WIRE_INTERFACES_COUNT > 4
122
+ extern TwoWire Wire4;
123
124
+#if WIRE_INTERFACES_COUNT > 5
125
+ extern TwoWire Wire5;
126
127
128
#endif
0 commit comments