From 2801ef4bd2857e4a12415c3262031f7ef8fa6f57 Mon Sep 17 00:00:00 2001 From: xiaojiazhu <258828110@qq.com> Date: Fri, 11 Aug 2023 18:40:14 +0800 Subject: [PATCH] Improve gps seraching thread. --- code/application/source/sf_app/code/source/app/sf_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/application/source/sf_app/code/source/app/sf_service.c b/code/application/source/sf_app/code/source/app/sf_service.c index a1f8a7692..c001a092c 100755 --- a/code/application/source/sf_app/code/source/app/sf_service.c +++ b/code/application/source/sf_app/code/source/app/sf_service.c @@ -1785,7 +1785,7 @@ int get_gps_location(void) void keep_get_gps_location(const SF_GPS_PARAM param) { int seraching = 0; - while(seraching < param.timeout_ms) + while(seraching < param.timeout_ms && sf_app_while_flag()) { // const int SERACHING_ONCE_MS = 200; if (GPS_GET_SUCCEED == get_gps_location())