Skip to content

Commit 152e066

Browse files
committed
Fixed python error when calling mbed compile without -t toolchain option
1 parent 2a1d517 commit 152e066

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)