From c0ce4ec2f10d49399c36b97989b61ab4541c486d Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Wed, 17 Jan 2018 15:16:25 -0600 Subject: [PATCH] Set strobe to false by default Otherwise we could get garbage values, and that was flagging some tests as failed at random times --- src/apple2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/apple2.c b/src/apple2.c index 23e50db..ba0292e 100644 --- a/src/apple2.c +++ b/src/apple2.c @@ -42,6 +42,10 @@ apple2_create(int width, int height) return NULL; } + // By default, we have no strobe set; it should only be set when a + // key is pressed + mach->strobe = false; + // Forward set these to NULL in case we fail to build the machine // properly; that way, we won't try to free garbage data mach->rom = NULL;