Skip to content

Commit 78273d4

Browse files
committed
Merge branch 'release/v1.2.2'
2 parents 235320c + d7c0555 commit 78273d4

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

builder/main.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,10 @@
176176
ASFLAGS=env.get("CCFLAGS", [])[:]
177177
)
178178

179-
180-
if (isfile(
179+
if isfile(
181180
join(
182181
platform.get_package_dir("tool-teensy") or "",
183-
"teensy_loader_cli")) and
184-
env.BoardConfig().id_ not in ("teensy35", "teensy36")):
182+
"teensy_loader_cli")):
185183
env.Append(
186184
UPLOADER="teensy_loader_cli",
187185
UPLOADERFLAGS=[
@@ -196,12 +194,10 @@
196194
REBOOTER="teensy_reboot",
197195
UPLOADER="teensy_post_compile",
198196
UPLOADERFLAGS=[
199-
"-file=firmware",
200-
'-path="$BUILD_DIR"',
197+
"-file=firmware", '-path="$BUILD_DIR"',
201198
'-tools="%s"' % (platform.get_package_dir("tool-teensy") or "")
202199
],
203-
UPLOADHEXCMD='$UPLOADER $UPLOADERFLAGS'
204-
)
200+
UPLOADHEXCMD='$UPLOADER $UPLOADERFLAGS')
205201

206202
#
207203
# Target: Build executable and linkable firmware
@@ -215,7 +211,7 @@
215211
target_firm = env.ElfToHex(join("$BUILD_DIR", "firmware"), target_elf)
216212

217213
AlwaysBuild(env.Alias("nobuild", target_firm))
218-
target_buildprog = env.Alias("buildprog", target_firm)
214+
target_buildprog = env.Alias("buildprog", target_firm, target_firm)
219215

220216
#
221217
# Target: Print binary size

platform.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"type": "git",
1414
"url": "https://github.com/platformio/platform-teensy.git"
1515
},
16-
"version": "1.2.1",
16+
"version": "1.2.2",
1717
"packageRepositories": [
1818
"https://dl.bintray.com/platformio/dl-packages/manifest.json",
1919
"https://sourceforge.net/projects/platformio-storage/files/packages/manifest.json/download",
@@ -53,7 +53,7 @@
5353
"tool-teensy": {
5454
"type": "uploader",
5555
"optional": true,
56-
"version": ">=1.1.0"
56+
"version": "~1.3.0"
5757
}
5858
}
5959
}

0 commit comments

Comments
 (0)