diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-22 13:11:39 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-22 13:11:39 -0400 |
commit | fc0ac4d9ae743ee855180ccdb8f24a9eeef896cc (patch) | |
tree | a309cddcc8d400f8f95270128506d84eda2be00d /device-functions.c | |
parent | eee587b04dc46ade28b84fd9534c3358afb4f181 (diff) |
initialize all flash data now
Diffstat (limited to 'device-functions.c')
-rw-r--r-- | device-functions.c | 5 |
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; } |