From 608292ee5b6d5a3f81277d116a3744ad77157d21 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Wed, 10 Mar 2021 17:06:05 +0100 Subject: [PATCH] Removed old uC/OS-III delay function in linux GPS emulator --- platform/drivers/GPS/GPS_linux.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/drivers/GPS/GPS_linux.c b/platform/drivers/GPS/GPS_linux.c index 27c04a70..2311f136 100644 --- a/platform/drivers/GPS/GPS_linux.c +++ b/platform/drivers/GPS/GPS_linux.c @@ -19,9 +19,9 @@ ***************************************************************************/ #include +#include #include #include -#include #define MAX_NMEA_LEN 80 #define NMEA_SAMPLES 8 @@ -63,12 +63,11 @@ bool gps_detect(__attribute__((unused)) uint16_t timeout) int gps_getNmeaSentence(char *buf, const size_t maxLength) { - OS_ERR os_err; static int i = 0; // Emulate GPS device by sending NMEA sentences every 1s if(i == 0) - OSTimeDlyHMSM(0u, 0u, 1u, 0u, OS_OPT_TIME_HMSM_STRICT, &os_err); + sleepFor(1u, 0u); size_t len = strnlen(test_nmea_sentences[i], MAX_NMEA_LEN); if (len > maxLength) return -1;