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/dtp41.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 spectro/dtp41.c (limited to 'spectro/dtp41.c') diff --git a/spectro/dtp41.c b/spectro/dtp41.c old mode 100644 new mode 100755 index 97a3db1..e536cfc --- a/spectro/dtp41.c +++ b/spectro/dtp41.c @@ -48,6 +48,7 @@ #include "sa_config.h" #include "numsup.h" #endif /* !SALONEINSTLIB */ +#include "cgats.h" #include "xspect.h" #include "insttypes.h" #include "conv.h" @@ -1331,7 +1332,7 @@ dtp41_get_set_opt(inst *pp, inst_opt_type m, ...) } /* Constructor */ -extern dtp41 *new_dtp41(icoms *icom, instType itype) { +extern dtp41 *new_dtp41(icoms *icom, instType dtype) { dtp41 *p; if ((p = (dtp41 *)calloc(sizeof(dtp41),1)) == NULL) { a1loge(icom->log, 1, "new_dtp41: malloc failed!\n"); @@ -1354,7 +1355,7 @@ extern dtp41 *new_dtp41(icoms *icom, instType itype) { p->del = dtp41_del; p->icom = icom; - p->itype = itype; + p->dtype = dtype; p->cap = inst_mode_none; /* Unknown until set */ p->mode = inst_mode_none; /* Not in a known mode yet */ p->nstaticr = 5; /* Number of static readings */ -- cgit v1.2.3