more flexible version numbers; use adafruit suffix; bump to 2.0.0-adafruit
This commit is contained in:
parent
43816f100d
commit
215ece3283
2 changed files with 4 additions and 4 deletions
|
|
@ -7,8 +7,8 @@ import sys
|
|||
def extract_firmware_version():
|
||||
with open('main/CommandHandler.cpp', 'r') as file:
|
||||
for line in file:
|
||||
if 'const char FIRMWARE_VERSION[6] = ' in line:
|
||||
# The line format is `const char FIRMWARE_VERSION[6] = "1.7.6";`
|
||||
if 'const char FIRMWARE_VERSION[] = ' in line:
|
||||
# The line format is `const char FIRMWARE_VERSION[6] = "2.0.0adafruit";`
|
||||
# Split by double quote and get the second element
|
||||
version = line.split('"')[1]
|
||||
return version
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ int errno;
|
|||
#endif
|
||||
|
||||
// Note: following version definition line is parsed by python script. Please don't change its format (space, indent) only update its version number.
|
||||
const char FIRMWARE_VERSION[6] = "1.8.0";
|
||||
const char FIRMWARE_VERSION[] = "2.0.0-adafruit";
|
||||
|
||||
// ADAFRUIT-CHANGE: user-supplied cert and key
|
||||
// Optional, user-defined X.509 certificate
|
||||
|
|
|
|||
Loading…
Reference in a new issue