Skip to content

Commit 36e0b4a

Browse files
Unbreak FreeRTOS (#1193)
USB changes caused FreeRTOS to not be able to swap tasks when the Serial port was connected. Clear the "stop PendSV" flag after checking for reset signal.
1 parent 974301e commit 36e0b4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/rp2040/SerialUSB.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ static void CheckSerialReset() {
190190
reset_usb_boot(0, 0);
191191
while (1); // WDT will fire here
192192
}
193+
__holdUpPendSV = 0;
193194
}
194195

195196
extern "C" void tud_cdc_line_state_cb(uint8_t itf, bool dtr, bool rts) {

0 commit comments

Comments
 (0)