Skip to content

Commit 35c0568

Browse files
safoclP-R-O-C-H-Y
andauthored
refactor(libraries/Wire): add return statement if slave isn't supported
Co-authored-by: Jan Procházka <[email protected]>
1 parent 69a5890 commit 35c0568

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/Wire/src/Wire.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ class TwoWire: public HardwareI2C
100100
#if SOC_I2C_SUPPORT_SLAVE
101101
return begin(address, -1, -1, 0);
102102
#else
103-
log_e("I2C slave is not supported by you SoC!!!");
103+
log_e("I2C slave is not supported on " CONFIG_IDF_TARGET);
104+
return false;
104105
#endif
105106
}
106107

0 commit comments

Comments
 (0)