chore: remove debug logging statements and fix clock propagation

This commit is contained in:
Jan-Peter von Hunnius 2026-02-26 20:07:05 +01:00
parent a2f485df5b
commit 6e245b615e
3 changed files with 2 additions and 33 deletions

View file

@ -1179,15 +1179,6 @@ mod tests {
phi1_guard.set_driver(Some("TEST".to_string()), PinValue::High);
}
// Debug: Check pin states before update
println!(
"DEBUG: Before update - SYNC: {:?}, CM: {:?}, CI: {:?}, PHI1: {:?}",
sync_pin.lock().unwrap().read(),
cm_pin.lock().unwrap().read(),
ci_pin.lock().unwrap().read(),
phi1_pin.lock().unwrap().read()
);
// Debug: Check conditions that would trigger memory operation
let sync = rom.read_sync_pin();
let chip_select = rom.read_cm_rom_pin();
@ -1200,20 +1191,6 @@ mod tests {
sync && chip_select && !io_select
);
// Debug: Check edge detection
println!("DEBUG: Before update - prev_phi1: {:?}", rom.prev_phi1);
// Debug: Check what read_clock_pins returns
let (read_phi1, _) = rom.read_clock_pins();
println!("DEBUG: read_clock_pins() returns PHI1: {:?}", read_phi1);
// Debug: Check edge detection logic manually
let phi1_rising = read_phi1 == PinValue::High && rom.prev_phi1 == PinValue::Low;
println!(
"DEBUG: Manual edge detection - PHI1: {:?}, prev_phi1: {:?}, rising: {}",
read_phi1, rom.prev_phi1, phi1_rising
);
// Update to process Φ1 rising edge
rom.update();