summaryrefslogtreecommitdiff
path: root/spectro/dtp41.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-25 10:16:54 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-25 10:16:54 +0100
commit1b1126bd023a2bb92699773a1867358067dabcb8 (patch)
tree6fd56d034e5a154c7992e7855d61691cecd043c4 /spectro/dtp41.c
parentcb5c7cec4aa1946f75dc3d408eb7f1051f3fb3d4 (diff)
parentf6b8e0eae4374f339487a33e3e4fe5462d5816e1 (diff)
Update upstream source from tag 'upstream/2.0.0'
Update to upstream version '2.0.0' with Debian dir e866e6e75661017faaa5331becda76021407390b
Diffstat (limited to 'spectro/dtp41.c')
-rwxr-xr-x[-rw-r--r--]spectro/dtp41.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/spectro/dtp41.c b/spectro/dtp41.c
index 97a3db1..e536cfc 100644..100755
--- 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 */