mirror of
https://github.com/pevans/erc-c.git
synced 2024-09-29 11:55:01 +00:00
More clearly check opposite phases
And prev should not be checked
This commit is contained in:
parent
443f9d1a01
commit
a461194a63
@ -269,7 +269,9 @@ apple2_dd_phaser(apple2dd *drive)
|
|||||||
|
|
||||||
// If the opposite cog is also on, then our accounting is for
|
// If the opposite cog is also on, then our accounting is for
|
||||||
// naught; nullify the step movement.
|
// 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;
|
step = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user