From c0b89ac5bfb90835ef01573267020e42d4fe070c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 23 Aug 2015 12:17:05 +0200 Subject: Imported Upstream version 1.8.0 --- spectro/dtp92.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 spectro/dtp92.c (limited to 'spectro/dtp92.c') diff --git a/spectro/dtp92.c b/spectro/dtp92.c old mode 100644 new mode 100755 index 9524326..1ed9bc1 --- a/spectro/dtp92.c +++ b/spectro/dtp92.c @@ -819,7 +819,7 @@ char id[CALIDLEN] /* Condition identifier (ie. white reference ID) */ if (*calt & inst_calt_emis_offset) { /* Dark offset calibration */ - if (*calc != inst_calc_man_em_dark) { + if ((*calc & inst_calc_cond_mask) != inst_calc_man_em_dark) { *calc = inst_calc_man_em_dark; return inst_cal_setup; } @@ -833,9 +833,9 @@ char id[CALIDLEN] /* Condition identifier (ie. white reference ID) */ if (*calt & inst_calt_emis_ratio) { /* Cell ratio calibration */ - if (*calc != inst_calc_emis_grey - && *calc != inst_calc_emis_grey_darker - && *calc != inst_calc_emis_grey_ligher) { + if ((*calc & inst_calc_cond_mask) != inst_calc_emis_grey + && (*calc & inst_calc_cond_mask) != inst_calc_emis_grey_darker + && (*calc & inst_calc_cond_mask) != inst_calc_emis_grey_ligher) { *calc = inst_calc_emis_grey; return inst_cal_setup; } @@ -1405,7 +1405,7 @@ extern dtp92 *new_dtp92(icoms *icom, instType itype) { p->del = dtp92_del; p->icom = icom; - p->itype = icom->itype; + p->itype = itype; icmSetUnity3x3(p->ccmat); /* Set the colorimeter correction matrix to do nothing */ set_base_disptype_list(p); -- cgit v1.2.3