diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-05-01 16:24:15 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-05-01 16:24:15 +0200 |
commit | a30ba67504ffd12c4db499adbb5ce47a7d1f6036 (patch) | |
tree | 9ae1a7e3849dda6bbb5c578232f6f2fa5b2e7e7e /spectro/dtp51.c | |
parent | 89e99e8a827859729729dfc92d74be4a8f96f1a4 (diff) | |
parent | 094535c010320967639e8e86f974d878e80baa72 (diff) |
New release 1.7.0
Diffstat (limited to 'spectro/dtp51.c')
-rw-r--r-- | spectro/dtp51.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spectro/dtp51.c b/spectro/dtp51.c index ac497d9..062ad7f 100644 --- a/spectro/dtp51.c +++ b/spectro/dtp51.c @@ -118,7 +118,7 @@ dtp51_fcommand( double to) { /* Timout in seconts */ int rv, se; - if ((se = p->icom->write_read(p->icom, in, out, bsize, tc, ntc, to)) != 0) { + if ((se = p->icom->write_read(p->icom, in, 0, out, bsize, NULL, tc, ntc, to)) != 0) { a1logd(p->log, 1, "dtp51_fcommand: serial i/o failure on write_read '%s'\n",icoms_fix(in)); return icoms2dtp51_err(se); } @@ -129,7 +129,7 @@ dtp51_fcommand( rv &= inst_imask; if (rv != DTP51_OK) { /* Clear the error */ char buf[MAX_MES_SIZE]; - p->icom->write_read(p->icom, "CE\r", buf, MAX_MES_SIZE, ">", 1, 0.5); + p->icom->write_read(p->icom, "CE\r", 0, buf, MAX_MES_SIZE, NULL, ">", 1, 0.5); } } } @@ -158,7 +158,7 @@ double to) { /* Timout in seconts */ int ntc = 1; /* Number of terminating characters */ int rv, se; - if ((se = p->icom->read(p->icom, out, bsize, tc, ntc, to)) != 0) { + if ((se = p->icom->read(p->icom, out, bsize, NULL, tc, ntc, to)) != 0) { a1logd(p->log, 1, "dtp51_fcommand: serial i/o failure on read\n"); return icoms2dtp51_err(se); } @@ -169,7 +169,7 @@ double to) { /* Timout in seconts */ rv &= inst_imask; if (rv != DTP51_OK) { /* Clear the error */ char buf[MAX_MES_SIZE]; - p->icom->write_read(p->icom, "CE\r", buf, MAX_MES_SIZE, ">", 1, 0.5); + p->icom->write_read(p->icom, "CE\r", 0, buf, MAX_MES_SIZE, NULL, ">", 1, 0.5); } } } @@ -262,7 +262,7 @@ dtp51_init_coms(inst *pp, baud_rate br, flow_control fc, double tout) { return ev; /* Change the baud rate to the rate we've been told */ - if ((se = p->icom->write_read(p->icom, brc[bi], buf, MAX_MES_SIZE, ">", 1, 1.5)) != 0) { + if ((se = p->icom->write_read(p->icom, brc[bi], 0, buf, MAX_MES_SIZE, NULL, ">", 1, 1.5)) != 0) { if (extract_ec(buf) != DTP51_OK) return inst_coms_fail; } @@ -275,7 +275,7 @@ dtp51_init_coms(inst *pp, baud_rate br, flow_control fc, double tout) { } /* Loose a character (not sure why) */ - p->icom->write_read(p->icom, "\r", buf, MAX_MES_SIZE, ">", 1, 0.5); + p->icom->write_read(p->icom, "\r", 0, buf, MAX_MES_SIZE, NULL, ">", 1, 0.5); /* Check instrument is responding */ if ((ev = dtp51_command(p, "\r", buf, MAX_MES_SIZE, 1.5)) != inst_ok) |