[Nut-upsdev] [nut] usbhid-ups: trailing spaces in nut-scanner output not ignored when trying to find ups (#26)

Charles Lepple clepple at gmail.com
Fri Apr 26 02:28:46 UTC 2013


On Apr 25, 2013, at 9:42 AM, Christian Wiese wrote:

> I created a pull request #27 which is fixing the issue.
> 
> # nut-scanner -qNU
> [nutdev1]
> driver = "usbhid-ups"
> port = "auto"
> vendorid = "051D"
> productid = "0002"
> product = "Back-UPS ES 700G FW:871.O2 .I USB FW:O2"
> serial = "5B1243T01934"
> vendor = "APC"
> bus = "002"

My main concern: why are spaces getting added in the first place? Is this coming from a strange version of libusb? (A quick look at the nut-scanner source code didn't show any obvious reasons.)

Ref: https://github.com/networkupstools/nut/issues/26#issuecomment-17007355




More information about the Nut-upsdev mailing list