Kernel: Fixed FDC motor_enable()

Motor Enable now selects the correct drive. The ternary
operations were backwards. QEMU doesn't care (obviously) but
on a real PC, the drive doesn't actually ever get selected...
This commit is contained in:
Jesse Buhagiar 2019-08-29 14:41:23 +10:00 committed by Andreas Kling
commit 1112899a63
Notes: sideshowbarker 2024-07-19 12:26:34 +09:00

View file

@ -370,7 +370,7 @@ u8 FloppyDiskDevice::read_msr() const
void FloppyDiskDevice::motor_enable(bool slave) const
{
u8 val = slave ? 0x1C : 0x2D;
u8 val = slave ? 0x2D : 0x1C;
write_dor(val);
}