summaryrefslogtreecommitdiff
path: root/test/location_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/location_test.c')
-rwxr-xr-xtest/location_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/location_test.c b/test/location_test.c
index 75d69c7..8bc6ad7 100755
--- a/test/location_test.c
+++ b/test/location_test.c
@@ -520,6 +520,9 @@ static int location_test()
fprintf(stderr, "\n Input position interval ==> ");
ret = scanf("%d", &interval);
+ if (interval > 1000 && interval < -1000)
+ interval = 1;
+
int method = menu - 11;
ret = location_manager_create(method, &manager);
fprintf(stderr, "location_manager_create (method: %d): %d\n", method, ret);