[argyllcms] Re: DTP41 and Linux

  • From: "Alastair M. Robinson" <blackfive@xxxxxxxxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Sat, 24 Jun 2006 00:25:01 +0100

Hi Graeme,

Graeme Gill wrote:

A source code snapshot of the pending release is on
the website if anyone is interested in investigating
in the meantime.

OK - the current snapshot works fine - *but* I had to fix a bug first.

In inst.c, function new_inst()
there's some code which attempts to deduce the instrument type for USB instruments:


        /* Set instrument type from USB port, if not specified */
        atype = usb_is_usb_portno(icom, comport);

        if (itype == instUnknown && atype != instUnknown)
                itype = atype;

        /* itype and atype will be the same now */

That last comment is *not* true for serial devices where the type is specified on the command line.

Once I'd added:

        atype = itype;
        /* Now they really are the same, even if a serial device's type
           is specified on the command line! */

It seemed to work OK. I haven't actually built a profile with it under Linux yet, though.

Without that correction, BTW - it segfaulted, rather than exiting gracefully with an unidentified instrument error.

Thanks for the pointer - and hope this feedback is some help :)

All the best,
--
Alastair M. Robinson

Other related posts: