Skip to content
Snippets Groups Projects
Commit 0ebce0d4 authored by Paulus Kruger's avatar Paulus Kruger
Browse files

renamed software version opcua point to align with sdptr

parent 89800628
No related branches found
No related tags found
No related merge requests found
Pipeline #51764 passed
...@@ -68,7 +68,7 @@ configs=[] ...@@ -68,7 +68,7 @@ configs=[]
if not(args.test): if not(args.test):
handler=opcuaserv.InitServer(port=args.port) handler=opcuaserv.InitServer(port=args.port)
logging.info("Load OPCUA variables & start i2c listing thread") logging.info("Load OPCUA variables & start i2c listing thread")
opcuaserv.AddVarR("pypcc_git_hash",git_hash,[],False) opcuaserv.AddVarR("TR_software_version_R",git_hash,[],False)
for i,name in enumerate(I2Cports): for i,name in enumerate(I2Cports):
RCU_I2C=I2Cclients[i] RCU_I2C=I2Cclients[i]
RCU_conf=yamlreader.yamlreader(RCU_I2C,yamlfile=name) RCU_conf=yamlreader.yamlreader(RCU_I2C,yamlfile=name)
......
...@@ -4,7 +4,8 @@ import subprocess ...@@ -4,7 +4,8 @@ import subprocess
def _get_version_hash(): def _get_version_hash():
"""Talk to git and find out the tag/hash of our latest commit""" """Talk to git and find out the tag/hash of our latest commit"""
try: try:
p = subprocess.Popen(["git", "rev-parse","HEAD"], # p = subprocess.Popen(["git", "rev-parse","HEAD"],
p = subprocess.Popen(["git", "show","-s","--format=%ci"],
# p = subprocess.Popen(["git", "log","-1","--format='%H'"], # p = subprocess.Popen(["git", "log","-1","--format='%H'"],
stdout=subprocess.PIPE) stdout=subprocess.PIPE)
except EnvironmentError: except EnvironmentError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment