Changeset 46 in svn for trunk/zasc/app_c/DST_DB.c
- Timestamp:
- Sep 15, 2015 10:11:42 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/zasc/app_c/DST_DB.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/zasc/app_c/DST_DB.c
r39 r46 504 504 static DS_U32 g_sync_request_time = 0; 505 505 static DS_U32 g_Sync_finish_time = 0; 506 static bool s_SyncNow = false; 506 507 507 508 void DST_DB_Sync() … … 510 511 } 511 512 513 void DST_DB_SyncNow() 514 { 515 DST_DB_Sync(); 516 s_SyncNow = true; 517 } 512 518 bool DST_DB_IsSync() 513 519 { … … 520 526 { 521 527 //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 526 537 //T(); 527 538 DS_U32 *version = (DS_U32 *)&strFlash[0];
Note: See TracChangeset
for help on using the changeset viewer.
