Skip to content

Commit 559b9fd

Browse files
committed
fix(support_rp2040): do not call sprintln! from the USB interrupt handler
It leads to a double borrow of `RefCell` and panic.
1 parent ee24eb0 commit 559b9fd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/r3_support_rp2040/src/usbstdio.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ pub const fn configure<System: Kernel>(b: &mut CfgBuilder<System>) {
9696
if let Ok(len) = g.serial.read(&mut buf) {
9797
if len > 0 {
9898
// TEST
99-
crate::sprintln!("{:?}", &buf[..len]);
10099
if buf[..len] == b"\r"[..] || buf[..len] == b"\n"[..] {
101100
let _ = g.serial.write(b"\r\n");
102101
return;

0 commit comments

Comments
 (0)