• Cristian Maglie's avatar
    Upload port detector improvements (#2288) · a1fad63c
    Cristian Maglie authored
    * If the upload port-detector fails detection, fallback to the user-provided port
    
    This will ensure that a port is always returned.
    
    * Increased debug level
    
    * Extend timeout if candidate port is lost in any case
    
    Even if `waitForUploadPort` is true, we should extend the timeout to
    allow USB enumeration to complete. In this case we extend by only 1
    second instead of 5.
    
    * Revert "Extend timeout if candidate port is lost in any case"
    
    This reverts commit 7c77ed242383e416ff8748884a64474f73932911.
    
    The latest commit is not necessary since the detector has already 5 seconds of timeout.
    a1fad63c
upload.go 27 KB