summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'device-functions.c')
-rw-r--r--device-functions.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/device-functions.c b/device-functions.c
index ac2acfb..048241a 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -1,4 +1,5 @@
#include "device-functions.h"
+#include "globals.h"
/* START FUNCTION DESCRIPTION ********************************************
Set_frequency <DEVFUNC.LIB>
@@ -25,10 +26,10 @@ int Set_frequency(int check_possible_only,int word_override,int range_override,i
return InvalidChannel;
}
- if (set_freq < 1.0) {
+ if (set_freq < globals.Flash.min_freq[channel]) {
return freq_lower_limit;
}
- if (set_freq > 1.0e6) {
+ if (set_freq > globals.Flash.max_freq[channel]) {
return freq_upper_limit;
}