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


Ignore:
Timestamp:
Mar 25, 2015 6:14:42 PM (11 years ago)
Author:
megakiss
Message:
 
File:
1 edited

Legend:

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

    r29 r33  
    652652int DST_DB_IsExceptRF(int rf) 
    653653{ 
    654         if (DST_EEPROM_GetFrequencySetting() == 0) return 0; 
     654        if (DST_EEPROM_GetMinRF() == DST_MinRF() && DST_EEPROM_GetMaxRF() == DST_MaxRF()) return 0; 
    655655        if (rf < DST_EEPROM_GetMinRF()) return 0; 
    656656        if (rf > DST_EEPROM_GetMaxRF()) return 0; 
     
    661661int DST_DB_GetExceptRFCount() 
    662662{ 
    663         if (DST_EEPROM_GetFrequencySetting() == 0) return 0; 
     663        if (DST_EEPROM_GetMinRF() == DST_MinRF() && DST_EEPROM_GetMaxRF() == DST_MaxRF()) return 0; 
    664664        return DST_EEPROM_GetMaxRF() - DST_EEPROM_GetMinRF() + 1; 
    665665} 
     
    675675{ 
    676676        int i=0; 
    677         if (DST_EEPROM_GetFrequencySetting() == 0) 
     677        if (DST_EEPROM_GetMinRF() == DST_MinRF() && DST_EEPROM_GetMaxRF() == DST_MaxRF()) 
    678678        { 
    679679                return GetNextRF(rf); 
Note: See TracChangeset for help on using the changeset viewer.