This commit is contained in:
maliakal_d 2021-07-30 15:35:57 +02:00
parent d64df39301
commit c989be1e17
2 changed files with 2 additions and 2 deletions

View File

@ -457,10 +457,10 @@ void setupDetector() {
setExpTime(DEFAULT_EXPTIME);
setPeriod(DEFAULT_PERIOD);
setDelayAfterTrigger(DEFAULT_DELAY);
setNumAdditionalStorageCells(DEFAULT_NUM_STRG_CLLS);
if (getChipVersion() == 11) {
selectStoragecellStart(DEFAULT_STRG_CLL_STRT_CHIP11);
} else {
setNumAdditionalStorageCells(DEFAULT_NUM_STRG_CLLS);
selectStoragecellStart(DEFAULT_STRG_CLL_STRT);
// not applicable for chipv1.1
setStorageCellDelay(DEFAULT_STRG_CLL_DLY);

View File

@ -4023,7 +4023,7 @@ int storage_cell_start(int file_des) {
if ((arg == GET_FLAG) || (Server_VerifyLock() == OK)) {
if (arg > getMaxStoragecellStart()) {
ret = FAIL;
strcpy(mess, "Max Storage cell number should not exceed %d\n", getMaxStoragecellStart());
sprintf(mess, "Max Storage cell number should not exceed %d\n", getMaxStoragecellStart());
LOG(logERROR, (mess));
} else {
retval = selectStoragecellStart(arg);