From 094535c010320967639e8e86f974d878e80baa72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Fri, 1 May 2015 16:13:57 +0200 Subject: Imported Upstream version 1.7.0 --- spectro/dtp51.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'spectro/dtp51.c') 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) -- cgit v1.2.3