Skip to content

Fixed python error when calling mbed compile without -t toolchain option #177

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 1 commit into from
Jun 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mbed/mbed.py
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ def get_mcu(self, mcu=None):
return target

def get_toolchain(self, toolchain=None):
tchain = toolchain if toolchain else program.get_cfg('TOOLCHAIN')
tchain = toolchain if toolchain else self.get_cfg('TOOLCHAIN')
if tchain is None:
error('Please specify compile toolchain using the -t switch or set default toolchain using command "toolchain"', 1)
return tchain
Expand Down