Use wild card *_PX4_* for upload

Compliments the Bootloader change To simplify the ripple effect on the tools, we will be using  /dev/serial/by-id/*_PX4_* to locate PX4 devices. Therefore  moving forward all Bootloaders must contain the prefix "PX4 BL "  in the USBDEVICESTRING
This commit is contained in:
David Sidrane
2017-02-01 17:16:24 -10:00
committed by Lorenz Meier
parent 0eac637870
commit c976a26156
+1
View File
@@ -510,6 +510,7 @@ function(px4_add_upload)
set(serial_ports)
if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux")
list(APPEND serial_ports
/dev/serial/by-id/*_PX4_*
/dev/serial/by-id/usb-3D_Robotics*
/dev/serial/by-id/usb-The_Autopilot*
/dev/serial/by-id/usb-Bitcraze*