From 0c76aab81c0ab7988bcc426c1bf6682aa5e54df5 Mon Sep 17 00:00:00 2001 From: pjht Date: Thu, 1 Feb 2024 18:46:39 -0600 Subject: [PATCH] Running state properly reset on power-on --- src/state.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/state.rs b/src/state.rs index e7376eb..31da5f8 100644 --- a/src/state.rs +++ b/src/state.rs @@ -95,6 +95,7 @@ impl EmuState { FrontpanelInteraction::Power(pwr) => { if pwr { self.audio_tx.send(AudioMessage::FanOn).unwrap(); + self.running = false; self.cpu = I8080::new(); self.update_fp(); } else {