rafacouto commented on a change in pull request #2403:
URL: https://github.com/apache/mynewt-core/pull/2403#discussion_r516974935



##########
File path: hw/scripts/common.sh
##########
@@ -76,3 +76,27 @@ parse_extra_jtag_cmd() {
     echo $NEW_EXTRA_JTAG_CMD
     EXTRA_JTAG_CMD=$NEW_EXTRA_JTAG_CMD
 }
+
+# Try to detect connnected programmers
+detect_programmer() {
+
+    # scan USB for well-known VID:PID
+    USB_DEV=$(ls /sys/bus/hid/devices)

Review comment:
       I've trusted on sysfs too much :angel: _lsusb_ command is the right way. 
Reviewing now... Thanks for your comments :+1: 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to