Description[PowerProfiler] pySerial module serial.tools.list_ports for linux should include the product information as description
With monsoon power monitor connected, while using serial.tools.list_ports module to see
available ports, the description field returned is always 'ttyACM0'. Whereas the same API
on windows and mac, returns 'Mobile Device Power Monitor'.
In this CL, we try to retrive the product information from the /product file associated
with this device. If we are unable to retrive, we simply return the device name itself
as is the present case.
BUG=382315
NOTRY=true
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279368
Patch Set 1 #Patch Set 2 : Patch for landing! #
Messages
Total messages: 21 (0 generated)
|