<br><br><div><span class="gmail_quote">2006/7/7, George Ross &lt;<a href="mailto:gdmr@inf.ed.ac.uk">gdmr@inf.ed.ac.uk</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; Network UPS Tools version 2.0.4-pre1 has been released.<br>&gt;<br>&gt; <a href="http://www.networkupstools.org/">http://www.networkupstools.org/</a><br><br>A couple more things with newhidups and APC UPSes:<br><br>The temperature value has disappeared.&nbsp;&nbsp;It used to read something in
<br>Kelvins; now it's &quot;NA&quot;.&nbsp;&nbsp;I'll see if I can get a debug trace, though it may<br>not be for a while.<br><br>I thought I remembered someone saying they were going to change the<br>descriptor-length code, but I find I still need this hack...
<br><br>--- drivers/libusb.c.dist&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2005-12-22 14:40:27.000000000 +0000<br>+++ drivers/libusb.c&nbsp;&nbsp;&nbsp;&nbsp;2006-01-06 12:46:35.000000000 +0000<br>@@ -226,6 +226,9 @@<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TRACE(2, &quot;&nbsp;&nbsp;Couldn't retrieve descriptors&quot;);
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;goto next_device;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>+<br>+/* HACK */<br>+desc-&gt;wDescriptorLength = 1040;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* res = usb_get_descriptor(udev, USB_DT_REPORT, 0, bigbuf, desc-&gt;wDescriptorLength); */
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;res = usb_control_msg(udev, USB_ENDPOINT_IN+1, USB_REQ_GET_DESCRIPTOR,<br></blockquote></div><br>@Peter: I remember you found a solution for that (descLen problem) or did I miss something?<br clear="all">
<br>@Georges: the ifndef issue seems strange. Do you have some more info about it?<br><br>Arnaud<br>-- <br>Linux / Unix Expert - MGE UPS SYSTEMS - R&amp;D Dpt<br>Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/">
http://www.networkupstools.org/</a><br>Debian Developer - <a href="http://people.debian.org/~aquette/">http://people.debian.org/~aquette/</a><br>OpenSource Developer - <a href="http://arnaud.quette.free.fr/">http://arnaud.quette.free.fr/
</a>