Changeset 42 in svn


Ignore:
Timestamp:
Mar 26, 2015 2:01:47 PM (11 years ago)
Author:
megakiss
Message:

주파수 설정이 변경되면 초기화하고 재부팅하도록 함

File:
1 edited

Legend:

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

    r39 r42  
    2222 
    2323static int nPos = 0; 
     24static int nMin = 0; 
     25static int nMax = 0; 
    2426 
    2527//class CFrequncySettingWin : public CWindow 
     
    4042 
    4143                this->SetTimeOut(this, 0); 
     44                 
     45                nMin = DST_EEPROM_GetMinRF(); 
     46                nMax = DST_EEPROM_GetMaxRF(); 
    4247        } 
    4348 
    4449        void CFrequncySettingWin_Destructor(CWindow *this) 
    4550        { 
     51                // ¼³Á¤°ªÀÌ º¯°æµÇ¾ú´Ù¸é ÃʱâÈ­ÇÑ´Ù. 
     52                if (nMin != DST_EEPROM_GetMinRF() || nMax != DST_EEPROM_GetMaxRF()) 
     53                { 
     54                        DST_EEPROM_SetNeedReset(1); 
     55                        DST_DB_Sync(); 
     56                        DST_Reset(__func__); // âÀÌ ´ÝÈ÷¸é¼­ ÀçºÎÆÃ 
     57                } 
    4658        } 
    4759         
Note: See TracChangeset for help on using the changeset viewer.