This commit is contained in:
2021-08-03 20:47:26 +02:00
parent 6dfcd9607f
commit 550810a3ca
6 changed files with 45 additions and 13 deletions

View File

@ -415,7 +415,7 @@ typedef struct {
enum vetoAlgorithm { DEFAULT_ALGORITHM };
enum gainMode {
NORMAL_GAIN_MODE,
DYNAMICGAIN,
FORCE_SWITCH_G1,
FORCE_SWITCH_G2,
FIX_G1,

View File

@ -581,8 +581,8 @@ std::string ToString(const defs::vetoAlgorithm s) {
std::string ToString(const defs::gainMode s) {
switch (s) {
case defs::NORMAL_GAIN_MODE:
return std::string("normal");
case defs::DYNAMICGAIN:
return std::string("dynamicgain");
case defs::FORCE_SWITCH_G1:
return std::string("forceswitchg1");
case defs::FORCE_SWITCH_G2:
@ -984,8 +984,8 @@ template <> defs::vetoAlgorithm StringTo(const std::string &s) {
}
template <> defs::gainMode StringTo(const std::string &s) {
if (s == "normal")
return defs::NORMAL_GAIN_MODE;
if (s == "dynamicgain")
return defs::DYNAMICGAIN;
if (s == "forceswitchg1")
return defs::FORCE_SWITCH_G1;
if (s == "forceswitchg2")