From 8b2e574febd351ac6f3e6b5db58bdfde4719c59b Mon Sep 17 00:00:00 2001 From: donker <donker@astron.nl> Date: Mon, 25 Oct 2021 15:54:18 +0200 Subject: [PATCH] L2SDP-516, repaired bug in making version string. --- src/periph/fpga.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/periph/fpga.cpp b/src/periph/fpga.cpp index 0003a89a..e1377d4f 100644 --- a/src/periph/fpga.cpp +++ b/src/periph/fpga.cpp @@ -977,7 +977,7 @@ bool Periph_fpga::read_firmware_version(TermOutput& termout, int format) if (retval == false) { return retval; } string revision = to_string(data[0]); - version = date.substr(0, 2) + "-" + date.substr(2, 2) + "-" + date.substr(4, 2) + version = date.substr(0, 4) + "-" + date.substr(4, 2) + "-" + date.substr(6, 2) + "T" + time.substr(0, 2) + "." + time.substr(2, 2) + "." + time.substr(4, 2) + "_" -- GitLab