Running state properly reset on power-on
This commit is contained in:
parent
b5727da45b
commit
0c76aab81c
@ -95,6 +95,7 @@ impl EmuState {
|
|||||||
FrontpanelInteraction::Power(pwr) => {
|
FrontpanelInteraction::Power(pwr) => {
|
||||||
if pwr {
|
if pwr {
|
||||||
self.audio_tx.send(AudioMessage::FanOn).unwrap();
|
self.audio_tx.send(AudioMessage::FanOn).unwrap();
|
||||||
|
self.running = false;
|
||||||
self.cpu = I8080::new();
|
self.cpu = I8080::new();
|
||||||
self.update_fp();
|
self.update_fp();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user