summaryrefslogtreecommitdiff
path: root/spectro/i1pro.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-25 10:16:00 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-11-25 10:16:00 +0100
commitf6b8e0eae4374f339487a33e3e4fe5462d5816e1 (patch)
tree5f5f764fd6cda404b2ad6e85762c03fce3a335db /spectro/i1pro.c
parent615ab5513e79c4abc5bbe5c993587785b6a1738b (diff)
New upstream version 2.0.0upstream/2.0.0
Diffstat (limited to 'spectro/i1pro.c')
-rwxr-xr-x[-rw-r--r--]spectro/i1pro.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/spectro/i1pro.c b/spectro/i1pro.c
index 44614d2..4399c57 100644..100755
--- a/spectro/i1pro.c
+++ b/spectro/i1pro.c
@@ -64,6 +64,7 @@
#include "numsup.h"
#include "rspl1.h"
#endif /* SALONEINSTLIB */
+#include "cgats.h"
#include "xspect.h"
#include "insttypes.h"
#include "conv.h"
@@ -140,15 +141,15 @@ i1pro_determine_capabilities(i1pro *p) {
;
/* Set the Pro capabilities mask */
- if (p->itype == instI1Pro
- || p->itype == instI1Pro2) {
+ if (p->dtype == instI1Pro
+ || p->dtype == instI1Pro2) {
p->cap |= inst_mode_ref_spot
| inst_mode_ref_strip
;
}
/* Set the Pro2 capabilities mask */
- if (p->itype == instI1Pro2) {
+ if (p->dtype == instI1Pro2) {
p->cap |= inst_mode_ref_uv
;
}
@@ -911,7 +912,7 @@ i1pro_del(inst *pp) {
}
/* Constructor */
-extern i1pro *new_i1pro(icoms *icom, instType itype) {
+extern i1pro *new_i1pro(icoms *icom, instType dtype) {
i1pro *p;
int rv;
if ((p = (i1pro *)calloc(sizeof(i1pro),1)) == NULL) {
@@ -940,7 +941,7 @@ extern i1pro *new_i1pro(icoms *icom, instType itype) {
p->del = i1pro_del;
p->icom = icom;
- p->itype = itype;
+ p->dtype = dtype;
i1pro_determine_capabilities(p);