changes from 4.2.0-rc: eiger check for max trimbits; end of eigerserver: if detector ip, set activate; update both control and stop server for activate

This commit is contained in:
2020-03-10 16:49:08 +01:00
parent 9467b4c610
commit dea8cba985
7 changed files with 27 additions and 4 deletions

View File

@ -2983,9 +2983,9 @@ int set_all_trimbits(int file_des) {
// set
if (arg >= 0 && Server_VerifyLock() == OK) {
if (arg > 63) {
if (arg > MAX_TRIMBITS_VALUE) {
ret = FAIL;
strcpy(mess, "Cannot set all trimbits. Range: 0 - 63\n");
sprintf(mess, "Cannot set all trimbits. Range: 0 - %d\n", MAX_TRIMBITS_VALUE);
FILE_LOG(logERROR, (mess));
} else {
ret = setAllTrimbits(arg);