Only apply speed boost on floppy controller if a disk image is present. This prevents over-use of CPU when starting emulator with no disk in the drive.

This commit is contained in:
Brendan Robert 2015-07-18 19:04:55 -05:00
parent d95bb82316
commit afb7e9d117

View File

@ -209,7 +209,7 @@ public class CardDiskII extends Card implements Reconfigurable, MediaConsumerPar
}
private void tweakTiming() {
if (drive1.isOn() || drive2.isOn()) {
if ((drive1.isOn() && drive1.disk != null) || (drive2.isOn() && drive2.disk != null)) {
if (USE_MAX_SPEED) {
computer.getMotherboard().requestSpeed(this);
}