diff --git a/pc/calibrate.c b/pc/calibrate.c index 8a4b744..9603b0c 100644 --- a/pc/calibrate.c +++ b/pc/calibrate.c @@ -154,7 +154,7 @@ int main(int argc, char *argv[]) sweep_ota(zoom, gpib, ota_sweep_count); break; case 2: - hold_ota2(zoom, gpib, ota_cmd); + hold_ota(zoom, gpib, ota_cmd); break; default: calibrate(zoom, gpib); @@ -421,7 +421,7 @@ void hold_ota(int zoom, int gpib, int ota_cmd) iactual = keithley2002_read2(gpib, &tx); - printf("%.8f %.8f\n", tx, iactual); + printf("%.12f %.12f\n", tx, iactual); } diff --git a/pc/dactest.c b/pc/dactest.c index c2cad97..42f5200 100644 --- a/pc/dactest.c +++ b/pc/dactest.c @@ -124,6 +124,7 @@ void write_random(int zoom, int gpib) gettimeofday(&now, NULL); meas = keithley2002_read(gpib); printf("%ld.%06ld %d %.12f\n", now.tv_sec, now.tv_usec, dac, meas); + fflush(stdout); } safecleanup: