From 2f4b15293ae57c50d8c04bccf89f814b0cd105ca Mon Sep 17 00:00:00 2001 From: dg Date: Tue, 29 Nov 2022 20:26:58 +0000 Subject: [PATCH] Adjust the FLX tick rate to something more resembling normality. --- lib/fluxsource/flx.h | 2 +- tests/flx.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/fluxsource/flx.h b/lib/fluxsource/flx.h index 7d853908..b40234df 100644 --- a/lib/fluxsource/flx.h +++ b/lib/fluxsource/flx.h @@ -1,7 +1,7 @@ #ifndef FLX_H #define FLX_H -#define FLX_TICK_NS 50 /* ns per tick */ +#define FLX_TICK_NS 40 /* ns per tick */ /* Special FLX opcodes */ diff --git a/tests/flx.cc b/tests/flx.cc index eae6db74..09b364eb 100644 --- a/tests/flx.cc +++ b/tests/flx.cc @@ -31,13 +31,13 @@ static void test_stream_reader() /* Simple one-byte intervals */ test_convert( Bytes{ 0, 0x64, FLX_STOP }, - Bytes{ 0xbc } + Bytes{ 0xb0 } ); /* Index pulse */ test_convert( Bytes{ 0, 0x64, FLX_INDEX, 0x64, FLX_STOP }, - Bytes{ 0xfc, 0xbc } + Bytes{ 0xf0, 0xb0 } ); }