We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bbaf64 commit 9b28fc3Copy full SHA for 9b28fc3
cores/rp2040/SerialPIO.cpp
@@ -259,9 +259,11 @@ void SerialPIO::end() {
259
}
260
if (_tx != NOPIN) {
261
pio_sm_set_enabled(_txPIO, _txSM, false);
262
+ pio_sm_unclaim(_txPIO, _txSM);
263
264
if (_rx != NOPIN) {
265
pio_sm_set_enabled(_rxPIO, _rxSM, false);
266
+ pio_sm_unclaim(_rxPIO, _rxSM);
267
_pioSP[pio_get_index(_rxPIO)][_rxSM] = nullptr;
268
// If no more active, disable the IRQ
269
auto pioNum = pio_get_index(_rxPIO);
0 commit comments