diff --git a/gemhardware/src/blaster.cpp b/gemhardware/src/blaster.cpp index fcaaec0db314e7aa1988de2889be8ee62e90b0a0..72bbfcc17f448501d73da0208cb6c5a739fb873c 100644 --- a/gemhardware/src/blaster.cpp +++ b/gemhardware/src/blaster.cpp @@ -165,7 +165,7 @@ uint32_t gem::hardware::blaster::execute::operator()(const uint32_t optohybridMa // Manually reset all VFAT for (size_t ohN = 0; ohN < amc::number_oh(); ++ohN) /* ignored = */ lpgbt::resetVFAT(ohN, oh::FULL_VFAT_MASK); - std::this_thread::sleep_for(std::chrono::milliseconds(25)); // Ensure VFAT are out of reset + std::this_thread::sleep_for(std::chrono::milliseconds(50)); // Ensure VFAT are out of reset #endif // Issue a link reset to clear the GBT status registers diff --git a/gemhardware/src/lpgbt.cpp b/gemhardware/src/lpgbt.cpp index d818d2aedf8db42112d85b70a6496e2bd01a10e6..cd292018a721f95d6b409d83f93756a0d1aac27b 100644 --- a/gemhardware/src/lpgbt.cpp +++ b/gemhardware/src/lpgbt.cpp @@ -104,7 +104,7 @@ std::optional<uint32_t> readADC(const uint32_t ohN, const uint8_t gbtN, const ad uint32_t resetVFAT(const uint32_t ohN, const uint32_t vfatMask) { - uint32_t okMask; // Set if reset applied + uint32_t okMask { 0 }; // Set if reset applied for (uint8_t gbtN = 0; gbtN < gbt::GBTS_PER_OH; ++gbtN) { // Build the GPIO masks and associated VFAT masks based on the hardware constants @@ -130,7 +130,7 @@ uint32_t resetVFAT(const uint32_t ohN, const uint32_t vfatMask) try { if (gpioMaskLow) { gbt::writeGBTReg(ohN, gbtN, 0x056, 0xff, gpioMaskLow); // Set GPIO high - std::this_thread::sleep_for(std::chrono::microseconds(25)); + std::this_thread::sleep_for(std::chrono::milliseconds(50)); gbt::writeGBTReg(ohN, gbtN, 0x056, 0x00, gpioMaskLow); // Set GPIO low okMask |= vfatMaskLow; } @@ -142,7 +142,7 @@ uint32_t resetVFAT(const uint32_t ohN, const uint32_t vfatMask) try { if (gpioMaskHigh) { gbt::writeGBTReg(ohN, gbtN, 0x055, 0xff, gpioMaskHigh); // Set GPIO high - std::this_thread::sleep_for(std::chrono::microseconds(25)); + std::this_thread::sleep_for(std::chrono::milliseconds(50)); gbt::writeGBTReg(ohN, gbtN, 0x055, 0x00, gpioMaskHigh); // Set GPIO low okMask |= vfatMaskHigh; }