From f9157c946d544de79c444c8b390cf24514db00ed Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 15 Oct 2019 18:53:29 +0200 Subject: [PATCH] SLCK detection: use more available SpinDelay --- armsrc/appmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/appmain.c b/armsrc/appmain.c index d75d00c14..e70b03cf8 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -366,7 +366,7 @@ void SendStatus(void) { uint32_t delta_time = 0; uint32_t start_time = GetTickCount(); #define SLCK_CHECK_MS 50 - WaitMS(SLCK_CHECK_MS); + SpinDelay(SLCK_CHECK_MS); delta_time = GetTickCountDelta(start_time); if ((delta_time < SLCK_CHECK_MS - 1) || (delta_time > SLCK_CHECK_MS + 1)) { // error > 2% with SLCK_CHECK_MS=50