Skip to content

Commit bbc6284

Browse files
authored
Merge pull request #375 from giulcioffi/free_Wire_stack_space
Free slave_th stack space in Wire.end()
2 parents 838c702 + 022282e commit bbc6284

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/Wire/Wire.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ void arduino::MbedI2C::end() {
4545
}
4646
#ifdef DEVICE_I2CSLAVE
4747
if (slave != NULL) {
48+
slave_th.terminate();
49+
slave_th.free_stack();
4850
delete slave;
4951
}
5052
#endif

0 commit comments

Comments
 (0)