diff options
author | tvoid <tvoid@lesaige.com> | 2008-04-08 17:04:19 -0600 |
---|---|---|
committer | tvoid <tvoid@lesaige.com> | 2008-04-08 17:04:19 -0600 |
commit | 05290ecda16d34d3e4b074cf8feb602e5f5e4e5e (patch) | |
tree | 228cda159f394742537fab2036220ceaf27d920d /gsm-tvoid/src/lib | |
parent | 8b86cd6d331e370e0c4a2e01510af38a3957694c (diff) |
-added wait count for timing test (stablize on good beacon)
-enabled real time
Diffstat (limited to 'gsm-tvoid/src/lib')
-rwxr-xr-x | gsm-tvoid/src/lib/gsm_burst.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gsm-tvoid/src/lib/gsm_burst.cc b/gsm-tvoid/src/lib/gsm_burst.cc index f18dcae..3bef146 100755 --- a/gsm-tvoid/src/lib/gsm_burst.cc +++ b/gsm-tvoid/src/lib/gsm_burst.cc @@ -713,7 +713,8 @@ int gsm_burst::get_burst(void) #ifdef TEST_TUNE_TIMING static int good_count = -1; //-1: wait sch, >=0: got sch, counting - + static int wait_count = 0; + if (UNKNOWN == d_burst_type) { if (good_count >= 0) { fprintf(stdout,"good_count: %d\n",good_count); @@ -732,9 +733,9 @@ int gsm_burst::get_burst(void) } if (SCH == d_burst_type) { - if (good_count < 0) { // waiting for sch? + if ((good_count < 0) && (++wait_count > 20)) { // get some good syncs before trying again fprintf(stdout,"restarting good_count\n"); - good_count = 0; + good_count = wait_count = 0; //tune away if (p_tuner) { next_arfcn = TEST_TUNE_EMPTY_ARFCN; |