|
|
@@ -123,7 +123,7 @@ void calibrate(int zoom, int gpib) |
|
|
|
if (zoom_zero_stop(zoom) < 0) goto fail; |
|
|
|
|
|
|
|
info("Sweeping\n"); |
|
|
|
for (idesired = -1.0; idesired <= 1.0 && !g_quit; idesired += 0.05) { |
|
|
|
for (idesired = -1.0; idesired <= 1.0 && !g_quit; idesired += 0.02) { |
|
|
|
info("Zeroing\n"); |
|
|
|
if (zoom_zero_start(zoom) < 0) goto fail; |
|
|
|
|
|
|
@@ -163,12 +163,12 @@ void startup_zero(int zoom) |
|
|
|
char buf[128]; |
|
|
|
|
|
|
|
if (zoom_init(zoom) < 0) |
|
|
|
errx(1, "init"); |
|
|
|
errx(1, "init failed"); |
|
|
|
|
|
|
|
while (!g_quit) { |
|
|
|
buf[0] = '0'; |
|
|
|
if (safewrite(zoom, buf, 1) != 1) |
|
|
|
errx(1, "write"); |
|
|
|
errx(1, "write failed"); |
|
|
|
if (fdgets(buf, 128, zoom, 1000) == NULL) |
|
|
|
errx(1, "read timeout"); |
|
|
|
chomp(buf); |
|
|
|