Improve gps seraching thread.
This commit is contained in:
parent
80ecdc40da
commit
2801ef4bd2
|
@ -1785,7 +1785,7 @@ int get_gps_location(void)
|
||||||
void keep_get_gps_location(const SF_GPS_PARAM param)
|
void keep_get_gps_location(const SF_GPS_PARAM param)
|
||||||
{
|
{
|
||||||
int seraching = 0;
|
int seraching = 0;
|
||||||
while(seraching < param.timeout_ms)
|
while(seraching < param.timeout_ms && sf_app_while_flag())
|
||||||
{
|
{
|
||||||
// const int SERACHING_ONCE_MS = 200;
|
// const int SERACHING_ONCE_MS = 200;
|
||||||
if (GPS_GET_SUCCEED == get_gps_location())
|
if (GPS_GET_SUCCEED == get_gps_location())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user