From 3a1af098edd94f26abaaea5fc457cffd1a8d3b5c Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Thu, 12 Nov 2026 16:01:10 +0100 Subject: [PATCH] sleep for g2 and my3 poweron --- .../gotthard2DetectorServer/slsDetectorFunctionList.c | 1 + .../mythen3DetectorServer/slsDetectorFunctionList.c | 1 + 2 files changed, 2 insertions(+) diff --git a/slsDetectorServers/gotthard2DetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/gotthard2DetectorServer/slsDetectorFunctionList.c index 39761d91f..f54698e9f 100644 --- a/slsDetectorServers/gotthard2DetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/gotthard2DetectorServer/slsDetectorFunctionList.c @@ -2356,6 +2356,7 @@ int powerChip(bool on, char *mess) { if (on) { LOG(logINFO, ("Powering chip: on\n")); bus_w(CONTROL_REG, bus_r(CONTROL_REG) | CONTROL_PWR_CHIP_MSK); + usleep(50 * 1000); // wait for chip to be ready if (configureChip(mess) == FAIL) return FAIL; } else { diff --git a/slsDetectorServers/mythen3DetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/mythen3DetectorServer/slsDetectorFunctionList.c index 8c7f107aa..d5dde30f4 100644 --- a/slsDetectorServers/mythen3DetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/mythen3DetectorServer/slsDetectorFunctionList.c @@ -2413,6 +2413,7 @@ int powerChip(int on) { if (on) { LOG(logINFO, ("Powering chip: on\n")); bus_w(CONTROL_REG, bus_r(CONTROL_REG) | CONTROL_PWR_CHIP_MSK); + usleep(50 * 1000); // wait for chip to be ready } else { LOG(logINFO, ("Powering chip: off\n")); bus_w(CONTROL_REG, bus_r(CONTROL_REG) & ~CONTROL_PWR_CHIP_MSK);