Changeset 4 in svn


Ignore:
Timestamp:
Apr 2, 2015 10:51:06 AM (11 years ago)
Author:
megakiss
Message:

주파수 설정 범위 안의 RF 만 사용하도록 코드 수정

File:
1 edited

Legend:

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

    r2 r4  
    653653{ 
    654654        if (DST_EEPROM_GetMinRF() == DST_MinRF() && DST_EEPROM_GetMaxRF() == DST_MaxRF()) return 0; 
    655         if (rf < DST_EEPROM_GetMinRF()) return 0; 
    656         if (rf > DST_EEPROM_GetMaxRF()) return 0; 
    657         return 1; 
     655        if (rf < DST_EEPROM_GetMinRF()) return 1; 
     656        if (rf > DST_EEPROM_GetMaxRF()) return 1; 
     657        return 0; 
    658658} 
    659659 
     
    661661int DST_DB_GetExceptRFCount() 
    662662{ 
    663         if (DST_EEPROM_GetMinRF() == DST_MinRF() && DST_EEPROM_GetMaxRF() == DST_MaxRF()) return 0; 
    664         return DST_EEPROM_GetMaxRF() - DST_EEPROM_GetMinRF() + 1; 
     663        return (DST_EEPROM_GetMinRF() - DST_MinRF()) + (DST_MaxRF() - DST_EEPROM_GetMaxRF()); 
    665664} 
    666665 
Note: See TracChangeset for help on using the changeset viewer.