Add the ability for decoders to specify their own clocks --- necessary for the

Victor 9k. We now have _much_ better decoding for this platform.
This commit is contained in:
David Given
2019-04-16 01:13:28 +02:00
parent 79b12b4c82
commit 9b59e7025d
5 changed files with 36 additions and 6 deletions

View File

@@ -146,7 +146,7 @@ void readDiskCommand(AbstractDecoder& decoder, const std::string& outputFilename
{
std::unique_ptr<Fluxmap> fluxmap = track->read();
nanoseconds_t clockPeriod = decoder.guessClock(*fluxmap);
nanoseconds_t clockPeriod = decoder.guessClock(*fluxmap, track->track);
if (clockPeriod == 0)
{
std::cout << " no clock detected; giving up" << std::endl;