Changeset 46 in svn for trunk/zasc/app_c/DST_DB.c


Ignore:
Timestamp:
Sep 15, 2015 10:11:42 AM (10 years ago)
Author:
phkim
Message:
  1. phkim
  2. 서경방송 [릴리즈 1.1.1]
  3. 초기화등 빠른 동기화를 위한 함수 추가및 수정
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zasc/app_c/DST_DB.c

    r39 r46  
    504504static DS_U32 g_sync_request_time = 0; 
    505505static DS_U32 g_Sync_finish_time = 0; 
     506static bool s_SyncNow = false; 
    506507 
    507508void DST_DB_Sync() 
     
    510511} 
    511512 
     513void DST_DB_SyncNow() 
     514{ 
     515        DST_DB_Sync(); 
     516        s_SyncNow = true; 
     517} 
    512518bool DST_DB_IsSync() 
    513519{ 
     
    520526        { 
    521527                //T(); 
    522                 DST_OS_Delay(1000); 
    523                 if (DST_g_KeyPressTime > DST_OS_GetTickCount()) DST_g_KeyPressTime = DST_OS_GetTickCount(); 
    524                 if (DST_OS_GetTickCount() - DST_g_KeyPressTime < DST_OS_GetTicksPerSecond()*5) continue; 
    525                 if (DST_DB_IsSync()) continue; 
     528                if(s_SyncNow == false) 
     529                { 
     530                        DST_OS_Delay(1000); 
     531                        if (DST_g_KeyPressTime > DST_OS_GetTickCount()) DST_g_KeyPressTime = DST_OS_GetTickCount(); 
     532                        if (DST_OS_GetTickCount() - DST_g_KeyPressTime < DST_OS_GetTicksPerSecond()*5) continue; 
     533                        if (DST_DB_IsSync()) continue; 
     534                } 
     535                s_SyncNow = false; 
     536 
    526537                //T(); 
    527538                DS_U32 *version = (DS_U32 *)&strFlash[0]; 
Note: See TracChangeset for help on using the changeset viewer.