stop nibble stream when drive off

This commit is contained in:
Will Scullin 2021-03-15 19:27:55 -07:00
parent ab3e97e8d1
commit ecef3010fd
No known key found for this signature in database
GPG Key ID: 26DCD1042C6638CD

View File

@ -435,7 +435,7 @@ export default class DiskII implements Card {
if (!isNibbleDrive(this.cur)) { if (!isNibbleDrive(this.cur)) {
return; return;
} }
if (this.skip || this.writeMode) { if (this.on && (this.skip || this.writeMode)) {
const track = this.cur.tracks![this.cur.track >> 2]; const track = this.cur.tracks![this.cur.track >> 2];
if (track && track.length) { if (track && track.length) {
if (this.cur.head >= track.length) { if (this.cur.head >= track.length) {