rewrote settings enums, gainmode enums

This commit is contained in:
2021-08-04 13:07:48 +02:00
parent 550810a3ca
commit 0e5e0f346b
16 changed files with 109 additions and 114 deletions

View File

@ -1561,8 +1561,8 @@ void validate_settings(enum detectorSettings sett) {
#ifdef EIGERD
case STANDARD:
#elif JUNGFRAUD
case DYNAMICGAIN:
case DYNAMICHG0:
case GAIN0:
case HIGHGAIN0:
#elif GOTTHARDD
case DYNAMICGAIN:
case HIGHGAIN:
@ -8593,9 +8593,12 @@ int set_gain_mode(int file_des) {
// only set
if (Server_VerifyLock() == OK) {
switch (gainmode) {
case NORMAL_GAIN_MODE:
case DYNAMIC_GAIN:
case FORCE_SWITCH_G1:
case FORCE_SWITCH_G2:
case FIX_G1:
case FIX_G2:
case FIX_G0:
break;
default:
modeNotImplemented("Gain Mode Index", (int)gainmode);