always set track lengths

This commit is contained in:
Christopher Mosher 2018-12-30 00:15:52 -05:00
parent 50c9d0e8e6
commit 97752f06ff
2 changed files with 4 additions and 2 deletions

View File

@ -125,8 +125,8 @@ void DiskController::stepLss() {
if (cmd & 8u) {
if (cmd & 3u) {
if (this->write) {
const bool one = (seq&0x80u) != (this->prev_seq&0x80u);
this->prev_seq = seq;
const bool one = (this->seq&0x80u) != (this->prev_seq&0x80u);
this->prev_seq = this->seq;
this->currentDrive->writeBit(one);
}
}

View File

@ -411,6 +411,8 @@ void WozFile::unload() {
delete [] this->trk[i];
this->trk[i] = 0;
}
this->trk_bits[i] = 0;
this->trk_byts[i] = 0;
}
}