We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 320abc9 commit 4aa7cbaCopy full SHA for 4aa7cba
src/Cru/CruBar.cxx
@@ -30,6 +30,8 @@
30
#include "boost/format.hpp"
31
#include "Utilities/Util.h"
32
33
+using namespace std::literals;
34
+
35
namespace AliceO2
36
{
37
namespace roc
@@ -269,6 +271,7 @@ boost::optional<int32_t> CruBar::getSerialNumber()
269
271
uint32_t serial = readRegister(Cru::Registers::SERIAL_NUMBER.index);
270
272
if (serial == 0x0) { // Try to populate the serial register in case it's empty
273
writeRegister(Cru::Registers::SERIAL_NUMBER_CTRL.index, Cru::Registers::SERIAL_NUMBER_TRG);
274
+ std::this_thread::sleep_for(5ms); // Wait some time for the I2C calls
275
serial = readRegister(Cru::Registers::SERIAL_NUMBER.index);
276
}
277
0 commit comments