changed speed to readoutspeed, added g2 speeds (108, 144)

This commit is contained in:
2021-10-07 18:39:18 +02:00
parent e2aa426966
commit 6b0e6a72df
18 changed files with 299 additions and 173 deletions

View File

@ -247,6 +247,10 @@ std::string ToString(const defs::speedLevel s) {
return std::string("half_speed");
case defs::QUARTER_SPEED:
return std::string("quarter_speed");
case defs::G_108MHZ:
return std::string("108");
case defs::G_144MHZ:
return std::string("144");
default:
return std::string("Unknown");
}
@ -707,6 +711,10 @@ template <> defs::speedLevel StringTo(const std::string &s) {
return defs::HALF_SPEED;
if (s == "quarter_speed")
return defs::QUARTER_SPEED;
if (s == "108")
return defs::G_108MHZ;
if (s == "144")
return defs::G_144MHZ;
throw sls::RuntimeError("Unknown speed " + s);
}