diff options
Diffstat (limited to 'device-functions.c')
-rw-r--r-- | device-functions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/device-functions.c b/device-functions.c index 69d94fa..2f4f2cf 100644 --- a/device-functions.c +++ b/device-functions.c @@ -756,7 +756,8 @@ int Set_Delay(int check_possible_only,int word_override,int range_override,int c /* won't work for all values if apparent fixed delay is less than minimum variable delay */ min_one_shot_delay = globals.Flash.delay_pwl_time[channel][0][0][0]; - if (globals.Flash.delay_shrink[channel] < min_one_shot_delay) { + if ( (globals.Flash.delay_shrink[channel] > 0.0) && + (globals.Flash.delay_shrink[channel] < min_one_shot_delay)) { return DelayRangeError; } |