We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 838c702 commit 022282eCopy full SHA for 022282e
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