Skip to content
Snippets Groups Projects
Commit 46bf1031 authored by Pieter Donker's avatar Pieter Donker
Browse files

L2SDP-252, add script.

parent 845b4974
Branches
No related tags found
1 merge request!3L2 sdp 252
...@@ -549,9 +549,9 @@ bool Periph_fpga::read_firmware_version(UCP *ucp, TermOutput& termout, int forma ...@@ -549,9 +549,9 @@ bool Periph_fpga::read_firmware_version(UCP *ucp, TermOutput& termout, int forma
string firmware_version; string firmware_version;
firmware_version = date.substr(0,2) + "-" + date.substr(2,2) + "-" + date.substr(4,2); firmware_version = date.substr(0,2) + "-" + date.substr(2,2) + "-" + date.substr(4,2);
firmware_version += "T"; 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 += "_";
firmware_version += revision + "-" + design_name; firmware_version += revision + "_" + design_name;
termout.nof_vals = firmware_version.size(); termout.nof_vals = firmware_version.size();
termout.datatype = format; termout.datatype = format;
......
...@@ -29,7 +29,10 @@ ...@@ -29,7 +29,10 @@
#include "tools/util.h" #include "tools/util.h"
#include "registers.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; namespace ublas = boost::numeric::ublas;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment