Improve gps seraching thread.

This commit is contained in:
xiaojiazhu 2023-08-11 18:40:14 +08:00
parent 80ecdc40da
commit 2801ef4bd2

View File

@ -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())