more flexible version numbers; use adafruit suffix; bump to 2.0.0-adafruit

This commit is contained in:
Dan Halbert 2025-02-06 16:12:16 -05:00
parent 43816f100d
commit 215ece3283
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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