Browse Source

better errors

git-svn-id: https://bucket.mit.edu/svn/nilm/zoom@7607 ddd99763-3ecb-0310-9145-efcb8ce7c51f
tags/zoom-1.0
jim 14 years ago
parent
commit
9551231ef5
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      pc/calibrate.c
  2. +1
    -1
      pc/read.c

+ 2
- 2
pc/calibrate.c View File

@@ -68,9 +68,9 @@ int main(int argc, char *argv[])
}

if ((zoom = serial_open(zoomdev, 115200)) == -1)
errx(1, "zoom open failed");
err(1, "failed to open zoom device %s", zoomdev);
if ((gpib = serial_open(gpibdev, 9600)) == -1)
errx(1, "gpib open failed");
err(1, "failed to open gpib device %s", gpibdev);

signal(SIGINT, handle_sig);
calibrate(zoom, gpib);


+ 1
- 1
pc/read.c View File

@@ -93,7 +93,7 @@ int main(int argc, char *argv[])
}

if ((fd = serial_open(device, rate)) == -1)
errx(1, "serial_open failed");
err(1, "serial_open failed for %s", device);

len = 0;
while (1) {


Loading…
Cancel
Save