Skip to content

Modify "mbed new" to create mbed_app.json with default content. #818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 30, 2019

Conversation

aashishc1988
Copy link
Contributor

@aashishc1988 aashishc1988 commented Jan 8, 2019

Modify "mbed new" to create mbed_app.json with default content.

Fixes #648

@aashishc1988
Copy link
Contributor Author

@screamerbg @theotherjimmy

@0Grit
Copy link

0Grit commented Jan 8, 2019

#648

@@ -221,6 +222,13 @@ def hide_progress(max_width=80):
if sys.stdout.isatty():
sys.stdout.write("\r%s\r" % (' ' * max_width))

def create_default_mbed_app():
# Default data content
data = {'target_overrides':{'K64F':{'platform.stdio-baud-rate': 9600}}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would you feel about swapping the K64F for * so it would be generic for all targets?

Suggested change
data = {'target_overrides':{'K64F':{'platform.stdio-baud-rate': 9600}}}
data = {'target_overrides':{'*':{'platform.stdio-baud-rate': 9600}}}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bridadan There are targets that have non-9600 default baud rates because they can't support 9600, I think.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good point (pretty sure some silicon lab targets do that).

@bridadan
Copy link
Contributor

This PR will need a rebase to bring in the fixes for the Circle CI configuration.

@theotherjimmy theotherjimmy merged commit 1370900 into ARMmbed:master Jan 30, 2019
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.

4 participants