[Nut-upsdev] [Nut-upsuser] Sweex 1000VA UPS (was: powermust usb)

Peter van Valderen p.v.valderen at probu.nl
Thu May 31 16:08:47 UTC 2007


Hello Alexander,

On 5/31/07, Alexander I. Gordeev <lasaine at lvk.cs.msu.su> wrote:

> Your patch should be fixed: driver fails to build.
> Please test patches before sending them.
> This line
>
> +lakeview_usb_LDADD = $(LDADD_DRIVER) $(LIBUSB_LDFLAGS)
>
> should be replaced with
>
> +lakeview_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LDFLAGS)
>SNIP

You're right obviously. How odd, it built fine here, if it hadn't, I
wouldn't have been able to test it. Weird. Anyway, fixed.

> Have you switched from nut_usb.c interface to libusb.c/libhid.c
> as Peter proposed?

I hadn't up until today, lack of time as well. My new version no
longer uses nut_usb.c. To be honest, for the most part I just copied
bits over from nut_usb.c and changed them to suit my needs. It now
compiles without nut_usb.c.

I also added some things such as a reconnect when communications fail,
this seems to happen every few days as I found out after using it for
a while. Should be fixed now.

The newest version can be found here:

http://probu.nl/~p.v.valderen/lakeview.v2.patch

I'd include it in this message, but that didn't work too well last time ;-)

Thanks for your help!

Regards,
Peter van Valderen



More information about the Nut-upsdev mailing list