diff --git a/slsDetectorSoftware/jungfrauDetectorServer/RegisterDefs.h b/slsDetectorSoftware/jungfrauDetectorServer/RegisterDefs.h index eb8b81663..1ddb91695 100644 --- a/slsDetectorSoftware/jungfrauDetectorServer/RegisterDefs.h +++ b/slsDetectorSoftware/jungfrauDetectorServer/RegisterDefs.h @@ -341,7 +341,8 @@ #define SET_EXPTIME_MSB_REG (0x69 << 11) /* Trigger Delay 32 bit register */ -#define SET_TRIGGER_DELAY_REG (0x70 << 11) +#define SET_TRIGGER_DELAY_LSB_REG (0x70 << 11) +#define SET_TRIGGER_DELAY_MSB_REG (0x71 << 11) /* Module Coordinates Register 0 */ #define COORD_0 (0x7C << 11) diff --git a/slsDetectorSoftware/jungfrauDetectorServer/slsDetectorFunctionList.c b/slsDetectorSoftware/jungfrauDetectorServer/slsDetectorFunctionList.c index 5fcc4e26d..c043d33bc 100644 --- a/slsDetectorSoftware/jungfrauDetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorSoftware/jungfrauDetectorServer/slsDetectorFunctionList.c @@ -578,7 +578,7 @@ int64_t setTimer(enum timerIndex ind, int64_t val) { printf("\nSetting delay to %lldns\n", (long long int)val); val *= (1E-3 * CLK_SYNC); } - retval = set64BitReg(val, SET_DELAY_LSB_REG, SET_DELAY_MSB_REG) / (1E-3 * CLK_SYNC); + retval = set64BitReg(val, SET_TRIGGER_DELAY_LSB_REG, SET_TRIGGER_DELAY_MSB_REG) / (1E-3 * CLK_SYNC); printf("Getting delay: %lldns\n", (long long int)retval); break;