1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-06-02 07:41:32 +00:00

More clearly check opposite phases

And prev should not be checked
This commit is contained in:
Peter Evans 2018-03-21 15:11:03 -05:00
parent 443f9d1a01
commit a461194a63

View File

@ -269,7 +269,9 @@ apple2_dd_phaser(apple2dd *drive)
// If the opposite cog is also on, then our accounting is for
// naught; nullify the step movement.
if ((next & (prev << 2)) || (next & (prev >> 2))) {
if (((next & DD_PHASE1) && (next & DD_PHASE3)) ||
((next & DD_PHASE2) && (next & DD_PHASE4))
) {
step = 0;
}