Commit 24d5f6f1 authored by Holger Witsch's avatar Holger Witsch

Try cutting off the superfluous comma ....

parent 6258e75b
Pipeline #11344 failed with stages
in 1 minute and 25 seconds
......@@ -2410,16 +2410,20 @@ void Fpga::start()
{
helper += "\"" + std::to_string(x.first) + "\": \"" + x.second + "\", ";
}
length = (u32_t)metastr.length() - 2;
helper.resize (length);
helper += R"(}, {"allcounters": ")";
for (auto &x : chnames)
{
helper += x.second + ";";
}
metastr = helper +
R"(", "allmotorm": "", "allmotors": "", "allpositions": "", "motors": "", "npts": )" + std::to_string(samples_per_waveform) +
R"(", "scanno": )" + std::to_string(attr_SCAN_N_read[0]) +
R"(", "allmotorm": "", "allmotors": "", "allpositions": "", "motors": "", "npts": ")" + std::to_string(samples_per_waveform) +
R"(", "scanno": ")" + std::to_string(attr_SCAN_N_read[0]) +
R"(", "scanrange": 0, "scantype": 144, "selectedcounters": "", "starts": "", "stops": "", "title": ")" + header +
R"(", "user": "opd28"}, {"cntinfilter": "", "dotsize": 5, "linewid": 2}])";
DEBUG_STREAM << metastr << endl;
char *thismeta = (char *)metastr.c_str();
length = (u32_t)metastr.length();
if ((retval = SPS_PutMetaData(SPS_channels, wfsps, (char *)thismeta, length)))
......
......@@ -34,8 +34,10 @@
//=============================================================================
#ifdef __linux__
#ifndef LINUX
#define LINUX
#endif
#endif
#ifndef Fpga_H
#define Fpga_H
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment