Changeset 4 in svn
- Timestamp:
- Apr 2, 2015 10:51:06 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/zasc/app_c/DST_DB.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/zasc/app_c/DST_DB.c
r2 r4 653 653 { 654 654 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; 658 658 } 659 659 … … 661 661 int DST_DB_GetExceptRFCount() 662 662 { 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()); 665 664 } 666 665
Note: See TracChangeset
for help on using the changeset viewer.
