Skip to content

Commit 00aef38

Browse files
committed
Wait for 50ms after reset (fixes #7)
to avoid hangs. Fix suggested by @yxkalle based on jsidplay2
1 parent 3749d6a commit 00aef38

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

exSID.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,9 @@ int exSID_reset(void * const exsid)
557557

558558
xsdbg("reset\n");
559559

560-
xSoutb(xs, XS_AD_IOCTRS, 100); // this will stall
560+
// This will stall and sleep for 50ms
561+
// Reset needs some time to complete
562+
xSoutb(xs, XS_AD_IOCTRS, 50000);
561563

562564
xs->clkdrift = 0;
563565

0 commit comments

Comments
 (0)