diff --git a/rust/pm-kit/src/main.rs b/rust/pm-kit/src/main.rs index 3bdd3c7..8cbaec0 100644 --- a/rust/pm-kit/src/main.rs +++ b/rust/pm-kit/src/main.rs @@ -59,7 +59,7 @@ fn main() -> ! { // heap for track parsing (track-format uses alloc). RP2350 has 520 KB SRAM. { use core::mem::MaybeUninit; - const HEAP_SIZE: usize = 96 * 1024; + const HEAP_SIZE: usize = 16 * 1024; static mut HEAP_MEM: [MaybeUninit; HEAP_SIZE] = [MaybeUninit::uninit(); HEAP_SIZE]; unsafe { HEAP.init(core::ptr::addr_of_mut!(HEAP_MEM) as usize, HEAP_SIZE) } } @@ -155,7 +155,7 @@ fn main() -> ! { // confirmed-working pattern in a loop. No inputs/audio/clock. If the screen shows blue + // corners → heap + parse + display are all fine and the bug is in the metronome loop logic. // If still black → the heap/parse path breaks the display. - let _t = track_format::parse("t120;kick:4=Xxxx;snare:4=.X.X"); + // (parse removed for this test — heap init only) let mut hb = false; let mut hb_us = 0u64; led.set_low().unwrap();