We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 838c702 + 022282e commit bbc6284Copy full SHA for bbc6284
libraries/Wire/Wire.cpp
@@ -45,6 +45,8 @@ void arduino::MbedI2C::end() {
45
}
46
#ifdef DEVICE_I2CSLAVE
47
if (slave != NULL) {
48
+ slave_th.terminate();
49
+ slave_th.free_stack();
50
delete slave;
51
52
#endif
0 commit comments