From f6b8e0eae4374f339487a33e3e4fe5462d5816e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 25 Nov 2017 10:16:00 +0100 Subject: New upstream version 2.0.0 --- spectro/ex1.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 spectro/ex1.c (limited to 'spectro/ex1.c') diff --git a/spectro/ex1.c b/spectro/ex1.c old mode 100644 new mode 100755 index 5f4eae2..929af3d --- a/spectro/ex1.c +++ b/spectro/ex1.c @@ -54,6 +54,7 @@ #include "sa_config.h" #include "numsup.h" #endif /* !SALONEINSTLIB */ +#include "cgats.h" #include "xspect.h" #include "insttypes.h" #include "conv.h" @@ -158,7 +159,7 @@ static int ex1_touch_calibration(ex1 *p); static inst_code ex1_init_coms(inst *pp, baud_rate br, flow_control fc, double tout) { ex1 *p = (ex1 *) pp; - instType itype = pp->itype; + instType dtype = pp->dtype; int se; inst_code ev = inst_ok; @@ -1210,7 +1211,7 @@ ex1_get_set_opt(inst *pp, inst_opt_type m, ...) { } /* Constructor */ -extern ex1 *new_ex1(icoms *icom, instType itype) { +extern ex1 *new_ex1(icoms *icom, instType dtype) { ex1 *p; if ((p = (ex1 *)calloc(sizeof(ex1),1)) == NULL) { a1loge(icom->log, 1, "new_ex1: malloc failed!\n"); @@ -1241,7 +1242,7 @@ extern ex1 *new_ex1(icoms *icom, instType itype) { p->del = ex1_del; p->icom = icom; - p->itype = itype; + p->dtype = dtype; p->want_dcalib = 1; /* Always do an initial dark calibration */ -- cgit v1.2.3