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
1 changed files with 1 additions and 1 deletions

View File

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