From c8575fe6e0bcfa8686635525e2ff0204a1e2e610 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 16 Jul 2017 13:39:08 -0400 Subject: [PATCH] Mild clean ups, and a tweak to permitted top and bottom phase. --- Storage/Tape/Parsers/Acorn.cpp | 2 +- Storage/Tape/Parsers/TapeParser.hpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Storage/Tape/Parsers/Acorn.cpp b/Storage/Tape/Parsers/Acorn.cpp index 51de84ca7..a125db23a 100644 --- a/Storage/Tape/Parsers/Acorn.cpp +++ b/Storage/Tape/Parsers/Acorn.cpp @@ -15,7 +15,7 @@ const int PLLClockRate = 1920000; } Parser::Parser() : - ::Storage::Tape::PLLParser(PLLClockRate, PLLClockRate / 4800, 100), + ::Storage::Tape::PLLParser(PLLClockRate, PLLClockRate / 4800, PLLClockRate / 24000), crc_(0x1021, 0x0000) {} int Parser::get_next_bit(const std::shared_ptr &tape) { diff --git a/Storage/Tape/Parsers/TapeParser.hpp b/Storage/Tape/Parsers/TapeParser.hpp index 28b5e8e68..c46152337 100644 --- a/Storage/Tape/Parsers/TapeParser.hpp +++ b/Storage/Tape/Parsers/TapeParser.hpp @@ -204,8 +204,10 @@ template class PLLParser: private: Storage::DigitalPhaseLockedLoop pll_; int clock_rate_; + int input_pattern_; int input_bit_counter_; + bool was_high_; };