fix version check script

This commit is contained in:
Peter Buchegger 2022-03-20 01:16:47 +01:00
parent 006b29d177
commit 6839db20ca

View file

@ -11,7 +11,7 @@ version = None
with open("src/LoRa_APRS_iGate.cpp") as f:
for line in f:
if line.startswith("#define VERSION"):
version = line.strip().split(" ")[2].replace('"', "")
version = line.strip().split(" ")[-1].replace('"', "")
version_split = version.split(".")
version_year = int(version_split[0])