diff --git a/HISTORY.rst b/HISTORY.rst index b09e2216..1d50de3e 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,12 @@ Release History =============== +0.10.1 (?) +---------- + +* Fixed missing auto-uploading by default within `platformio init `__ + command + 0.10.0 (2015-01-01) Happy New Year! ----------------------------------- @@ -9,7 +15,7 @@ Release History * Added support of *Engduino* boards for `atmelavr `__ platform (`issue #38 `_) -* Added ``--board`` option to `platformio init `_ +* Added ``--board`` option to `platformio init `__ command which allows to initialise project with the specified embedded boards (`issue #21 `_) * Added `example with uploading firmware `_ @@ -22,7 +28,6 @@ Release History * Fixed urllib3's *SSL* warning under Python <= 2.7.2 (`issue #39 `_) * Fixed bug with *Arduino USB* boards (`issue #40 `_) - 0.9.2 (2014-12-10) ------------------ diff --git a/platformio/commands/init.py b/platformio/commands/init.py index 10e0fb2f..5b93cad1 100644 --- a/platformio/commands/init.py +++ b/platformio/commands/init.py @@ -89,8 +89,8 @@ def fill_project_envs(project_file, board_types, disable_auto_uploading): content.append("framework = %s" % framework) content.append("board = %s" % type_) - content.append("%stargets = upload" % "# " if disable_auto_uploading - else "") + content.append("%stargets = upload" % ("# " if disable_auto_uploading + else "")) with open(project_file, "a") as f: f.write("\n".join(content))