Skip to content

Commit f1f57be

Browse files
committed
Merge pull request #177 from screamerbg/development
Fixed python error when calling `mbed compile` without -t toolchain option
2 parents 2a1d517 + 152e066 commit f1f57be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ def get_mcu(self, mcu=None):
11741174
return target
11751175

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

0 commit comments

Comments
 (0)