[Nut-upsdev] [nut-commits] svn commit r3363 - in trunk: data docs/man drivers

Charles Lepple clepple at gmail.com
Sat Dec 17 14:44:10 UTC 2011


On Dec 17, 2011, at 3:53 AM, Arnaud Quette wrote:

> Author: aquette
> Date: Sat Dec 17 08:53:41 2011
> New Revision: 3363
> URL: http://trac.networkupstools.org/projects/nut/changeset/3363
> 
> Log:
> Try to fix language ID support for USB units from LDLC, Dynamix and no names in blazer_usb (reworked patch, from Brian R. Smith and Aurélien Grenotton)
...
> +			if (testvar("langid_fix")) {
> +				/* Hardcode lang to 0x4095 */
> +				ret = usb_get_string(udev, command[i].index, 0x4095, buf, buflen);
> +			}

Arnaud,

Could this code use the langid_fix value which is set in upsdrv_initups() instead of 0x4095? Or am I misunderstanding how this is supposed to work?

- Charles


More information about the Nut-upsdev mailing list