]> git.sesse.net Git - pistorm/commitdiff
Update emulator.c
authorbeeanyew <beeanyew@gmail.com>
Sat, 20 Feb 2021 05:20:46 +0000 (06:20 +0100)
committerbeeanyew <beeanyew@gmail.com>
Sat, 20 Feb 2021 05:20:46 +0000 (06:20 +0100)
emulator.c

index 9081085da529afbd5ae959727d279c1f309dd57e..e6a7c6b129080a6f9e15d4adfb4fa6f21f9db934 100644 (file)
@@ -76,8 +76,9 @@ void *iplThread(void *args) {
   printf("IPL thread running\n");
 
   while (1) {
-    if (!gpio_get_irq() && irq == 0) {
-      irq = 1;
+    if (!gpio_get_irq()) {
+      if (irq == 0)
+        irq = 1;
       m68k_end_timeslice();
     }