summaryrefslogtreecommitdiff
path: root/spectro/i1pro.c
diff options
context:
space:
mode:
Diffstat (limited to 'spectro/i1pro.c')
-rwxr-xr-x[-rw-r--r--]spectro/i1pro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/spectro/i1pro.c b/spectro/i1pro.c
index cc2d7f2..96335cc 100644..100755
--- a/spectro/i1pro.c
+++ b/spectro/i1pro.c
@@ -726,7 +726,7 @@ i1pro_get_set_opt(inst *pp, inst_opt_type m, ...)
i1pro_set_noinitcalib(p, 0, 0);
return inst_ok;
- } if (m == inst_opt_noinitcalib) {
+ } else if (m == inst_opt_noinitcalib) {
va_list args;
int losecs = 0;
@@ -839,7 +839,7 @@ extern i1pro *new_i1pro(icoms *icom, instType itype) {
p->del = i1pro_del;
p->icom = icom;
- p->itype = icom->itype;
+ p->itype = itype;
i1pro_determine_capabilities(p);