]> Untitled Git - pico1541.git/commitdiff
Allow some CPU timing slop
authorMaxwell Beck <max@rastertail.net>
Sun, 29 Dec 2024 01:34:56 +0000 (19:34 -0600)
committerMaxwell Beck <max@rastertail.net>
Sun, 29 Dec 2024 01:34:56 +0000 (19:34 -0600)
Still not sure why this is needed now.

src/pico1541.c

index 266bfd781ca0380dd99ab24dd3cc625c1d9a43d9..3489feeb3abde43fc6914fa3df50844ec8850e60 100644 (file)
@@ -187,7 +187,7 @@ int main() {
        ts = time_us_32();
        uint16_t osc2 = 0xffff;
        while (!cpu.jammed) {
-               if (ts < time_us_32()) {
+               if (ts + 100 < time_us_32()) {
                        break;
                }