From 832797182fe7150e2f32af0f8901fff3cd6e07e2 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 19 Jan 2016 18:59:10 -0500 Subject: [PATCH] Update TapeUEF.cpp Corrected chunk for which _tone_length is used, definition of a carrier tone chunk. --- Storage/Tape/Formats/TapeUEF.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Storage/Tape/Formats/TapeUEF.cpp b/Storage/Tape/Formats/TapeUEF.cpp index 3893dba2a..4df4dffc3 100644 --- a/Storage/Tape/Formats/TapeUEF.cpp +++ b/Storage/Tape/Formats/TapeUEF.cpp @@ -75,7 +75,7 @@ Storage::Tape::Pulse Storage::UEF::get_next_pulse() case 0x0110: next_pulse.type = (_bit_position&1) ? Pulse::High : Pulse::Low; - next_pulse.length.length = 2; + next_pulse.length.length = 1; _bit_position ^= 1; if(!_bit_position) _chunk_position++; @@ -151,7 +151,7 @@ bool Storage::UEF::chunk_is_finished() { case 0x0100: return (_chunk_position / 10) == _chunk_length; case 0x0102: return (_chunk_position / 8) == _chunk_length; - case 0x0111: return _chunk_position == _tone_length; + case 0x0110: return _chunk_position == _tone_length; case 0x0112: case 0x0116: return _chunk_position ? true : false;