Skip to content
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

Allow increment after successful upload + tidyup #4

Merged
merged 11 commits into from
Jun 4, 2020
Prev Previous commit
Next Next commit
Format had one to many arguments
pfeerick committed May 29, 2020
commit 905a9ff9e7101b30aa28edd5d55e5e51b34126a2
2 changes: 1 addition & 1 deletion version_increment_post.py
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ def increment_version(source, target, env):
#ifndef BUILD_TIMESTAMP
#define BUILD_TIMESTAMP "{}"
#endif
""".format(version + str(build_no), datetime.datetime.now(), version+str(build_no))
""".format(version + str(build_no), datetime.datetime.now())

if (os.environ.get('PLATFORMIO_INCLUDE_DIR') != None):
VERSION_FILE = os.environ.get('PLATFORMIO_INCLUDE_DIR') + "/" + VERSION_FILE
2 changes: 1 addition & 1 deletion version_increment_pre.py
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@
#ifndef BUILD_TIMESTAMP
#define BUILD_TIMESTAMP "{}"
#endif
""".format(version + str(build_no), datetime.datetime.now(), version+str(build_no))
""".format(version + str(build_no), datetime.datetime.now())

if (os.environ.get('PLATFORMIO_INCLUDE_DIR') != None):
VERSION_FILE = os.environ.get('PLATFORMIO_INCLUDE_DIR') + "/" + VERSION_FILE