Skip to content

UX: Fallback to detect connected target when none specified#774

Merged
screamerbg merged 2 commits intoARMmbed:masterfrom
screamerbg:f/detected_target
Nov 1, 2018
Merged

UX: Fallback to detect connected target when none specified#774
screamerbg merged 2 commits intoARMmbed:masterfrom
screamerbg:f/detected_target

Conversation

@screamerbg
Copy link
Copy Markdown
Contributor

This small patch aims to improve the UX by falling back to detected connected target board when doing mbed compile or mbed test with no target specified. I.e.

Current behavior:

$ mbed test -t GCC_ARM
[mbed] ERROR: Please specify target using the -m switch or set default target using command "mbed target"

New behavior:

$ mbed test -t GCC_ARM
[mbed] Detected "NUCLEO_F401RE" connected to "E:" and using com port "COM3"
...

Note that if a target is set as local/global configuration flag, then that specific target will be used instead.

@screamerbg screamerbg requested review from cmonr and theotherjimmy and removed request for cmonr October 31, 2018 14:24
@screamerbg screamerbg merged commit e993263 into ARMmbed:master Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants