From 6add9c540d3b4b59aae0a4c7bfa721eb154cba18 Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Sun, 4 Nov 2018 16:10:27 -0300 Subject: [PATCH] Fix delay constants for interrupt counter test mode --- IO.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/IO.h b/IO.h index b8e5a7e..c50f08f 100644 --- a/IO.h +++ b/IO.h @@ -48,9 +48,17 @@ #define SCAN_PAUSE 20000 #if defined(DUPLEX) -#define CAL_DLY_LOOP 96100U +#if defined(STM32_USB_HOST) +#define CAL_DLY_LOOP 98950U #else -#define CAL_DLY_LOOP 106000U +#define CAL_DLY_LOOP 105100U +#endif +#else +#if defined(STM32_USB_HOST) +#define CAL_DLY_LOOP 110850U +#else +#define CAL_DLY_LOOP 114350U +#endif #endif extern uint32_t m_frequency_rx;