From 46bf10316a768d7b176d22a3e28cf07d96e0ec8a Mon Sep 17 00:00:00 2001
From: donker <donker@astron.nl>
Date: Wed, 14 Apr 2021 15:54:23 +0200
Subject: [PATCH] L2SDP-252, add script.

---
 src/periph/fpga.cpp | 4 ++--
 src/tr.h            | 5 ++++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/periph/fpga.cpp b/src/periph/fpga.cpp
index c0a473b7..1df48211 100644
--- a/src/periph/fpga.cpp
+++ b/src/periph/fpga.cpp
@@ -549,9 +549,9 @@ bool Periph_fpga::read_firmware_version(UCP *ucp, TermOutput& termout, int forma
     string firmware_version;
     firmware_version = date.substr(0,2) + "-" + date.substr(2,2) + "-" + date.substr(4,2);
     firmware_version += "T";
-    firmware_version += time.substr(0,2) + ":" + time.substr(2,2) + ":" + time.substr(4,2);
+    firmware_version += time.substr(0,2) + "." + time.substr(2,2) + "." + time.substr(4,2);
     firmware_version += "_";
-    firmware_version += revision + "-" + design_name;
+    firmware_version += revision + "_" + design_name;
 
     termout.nof_vals = firmware_version.size();
     termout.datatype = format;
diff --git a/src/tr.h b/src/tr.h
index a862ea22..79221fc0 100644
--- a/src/tr.h
+++ b/src/tr.h
@@ -29,7 +29,10 @@
 #include "tools/util.h"
 #include "registers.h"
 
-#define TR_SW_VERSION "2021-04-13T14:06:22_sdptr"
+#include "../config.h"
+
+//#define TR_SW_VERSION "2021-04-13T14:06:22_sdptr"
+#define TR_SW_VERSION VERSION 
 
 namespace ublas = boost::numeric::ublas;
 
-- 
GitLab