Skip to content

Commit a7f93af

Browse files
committed
Wire: fix onRequest() on STM32H7
Sending a stop() should be ok, and in fact it works on most platforms. STM32H7, on the other hand, hangs badly after the first request, so let's get rid of it (as in the other cases)
1 parent bf06705 commit a7f93af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Wire/Wire.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void arduino::MbedI2C::receiveThd() {
153153
slave->write((const char *) txBuffer, usedTxBuffer);
154154
usedTxBuffer = 0;
155155
}
156-
slave->stop();
156+
//slave->stop();
157157
break;
158158
case mbed::I2CSlave::WriteGeneral:
159159
case mbed::I2CSlave::WriteAddressed:

0 commit comments

Comments
 (0)