> Apart from an USB problem (I'll write another mail on that subject)
So this is that other mail.

I have two identical UPSen connected via USB. Without talking their protocol, 
they are undistinguishable (when talking the protocol, you can use a "slave 
address" you may set individually).
Back in the libusb0 days, I added a "device" attribute (like the "bus" 
attribute), but that seems to have gone missing during the libusb1 update.

I tried to add it back (see the #if 0 part in the attached patch) using 
libusb_get_port_number()) but at least on my NetBSD machine, it turned out to 
be zero for both devices.
I resorted to using the loop variable instead (see the #else branch), which 
made my UPSen work again.

Does libusb_get_port_number() return anything useful on other OSes?

Comments?

_______________________________________________
Nut-upsdev mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev

Reply via email to