[update] fix freq for eis mode

This commit is contained in:
ROY
2022-11-04 17:30:17 +08:00
parent a3eda0b1e0
commit acca41ac6b
2 changed files with 4 additions and 4 deletions
@@ -166,13 +166,13 @@ static uint32_t CalcDelayTime(uint32_t freq){
static uint32_t User2Freq(uint32_t UserCode){
uint32_t freq;
freq = (UserCode * 149 + 50)/ 100;
freq = UserCode * 15 / 10;
return freq; //[100mHz]
}
static uint32_t Freq2DAC(uint32_t freq){
uint32_t code;
code = (freq * 100 + 75) / 149;
code = freq * 10 / 15;
return code; //return code
}
@@ -5,8 +5,8 @@
#define VERSION_DATE_YEAR 22
#define VERSION_DATE_MONTH 11
#define VERSION_DATE_DAY 4
#define VERSION_DATE_HOUR 10
#define VERSION_DATE_MINUTE 35
#define VERSION_DATE_HOUR 17
#define VERSION_DATE_MINUTE 30
// this is NOT the version hash !!
// it's the last version hash