We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b23d5e9 commit 7f17263Copy full SHA for 7f17263
ArduinoCore-Linux/cores/arduino/I2CWrapper.h
@@ -87,7 +87,7 @@ class I2CWrapper : public HardwareI2C {
87
88
HardwareI2C* getI2C() {
89
HardwareI2C* result = p_i2c;
90
- if (result == nullptr) {
+ if (result == nullptr && p_source != nullptr) {
91
result = p_source->getI2C();
92
}
93
return result;
0 commit comments