mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2026-01-12 03:20:12 +01:00
Up max stop
This commit is contained in:
parent
73b6cddedc
commit
1d6b511e09
3
main.c
3
main.c
|
|
@ -834,7 +834,8 @@ freq_mode_centerspan(void)
|
|||
|
||||
#define START_MIN 50000
|
||||
//#define STOP_MAX 900000000
|
||||
#define STOP_MAX 1500000000
|
||||
//#define STOP_MAX 1500000000
|
||||
#define STOP_MAX 2100000000
|
||||
|
||||
void
|
||||
set_sweep_frequency(int type, float frequency)
|
||||
|
|
|
|||
5
si5351.c
5
si5351.c
|
|
@ -309,7 +309,10 @@ si5351_set_frequency_with_offset(int freq, int offset, uint8_t drive_strength)
|
|||
int delay = 3;
|
||||
uint32_t ofreq = freq + offset;
|
||||
uint32_t rdiv = SI5351_R_DIV_1;
|
||||
if (freq > 900000000) {
|
||||
if (freq > 1500000000) {
|
||||
freq /= 7;
|
||||
ofreq /= 9;
|
||||
} else if (freq > 900000000) {
|
||||
freq /= 5;
|
||||
ofreq /= 7;
|
||||
} else if (freq > 300000000) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue