[argyllcms] Regression: Spectrolino/Spectroscan apparently can't have filters any more

  • From: Wolfgang Weisselberg <794sn4fcs8@xxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Mon, 7 May 2012 21:55:53 +0200

Hi,

Argyll V1.3.5:
    $ chartread -c 5 -F n $PROFILE
    Please place sheet 1 of 1 on table, then
    hit return to continue, Esc or 'q' to give up
    ...

Argyll V1.4.0:
    $ chartread -c 5 -F n $PROFILE
    Setting filter configuration not supported by instrument
    $

I have not checked if the same error applies to other
instruments as well.


-Wolfgang Weisselberg


diff --git a/spectro/ss.c b/spectro/ss.c
index 4a4dbb1..5a5b28e 100644
--- a/spectro/ss.c
+++ b/spectro/ss.c
@@ -1887,7 +1887,9 @@ ss_set_opt_mode(inst *pp, inst_opt_mode m, ...)
 
        if (!p->gotcoms)
                return inst_no_coms;
-       if (!p->inited)
+
+       /* Setting the filter is allowed without an initialized instrument */
+       if (!p->inited && m != inst_opt_set_filter)
                return inst_no_init;
 
        if (m == inst_opt_noautocalib) {

Other related posts: