From 48098fad82a0eb3df68e194c764ea04cfc8b01a2 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Fri, 24 Aug 2012 10:41:49 -0400 Subject: show debugging output when setting freq --- device-functions.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'device-functions.c') diff --git a/device-functions.c b/device-functions.c index a158f33..36ff8a4 100644 --- a/device-functions.c +++ b/device-functions.c @@ -634,6 +634,8 @@ int Set_frequency(int check_possible_only,int word_override,int range_override,i globals.Changes.update_freq=YES; } + g_print_debug("freq range %d, word %d\n",relay_range,word_out); + globals.ChannelState[channel].frequency=set_freq; Set_Pw(0,0,0,channel,new_pw,0); @@ -2663,23 +2665,17 @@ int Set_VI_Control(int parameter,int channel,float new_ampl,int *point_found,int tweaked_use_ampl = use_ampl; for (range_i=starting_range; (range_ismallest_allowed_number) && ( ((tweaked_use_ampl>=pwl_amp[index]) && (tweaked_use_ampl<=pwl_amp[index+1])) @@ -2740,8 +2736,6 @@ int Set_VI_Control(int parameter,int channel,float new_ampl,int *point_found,int } } - g_print_debug("word_out %d\r\n", *word_out); - /* The amplitude/os settings must lie within the calibration points. */ /* However, the timing data is allowed to lie outside the upper end, */ /* because the reciprocal relationship allows an asymptotic extension to infinity, */ -- cgit