mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 21:37:13 +02:00
changed speed to readoutspeed, added g2 speeds (108, 144)
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user