Increasing the bus read timeout for FRU
The FRU for NVME M2 SSD went missing after chassis power cycle.
By increasing the I2C bus read timeout, allowing the service more time
to read the FRU for the device. Worst case measurement during 10 DC Cycles is 6 seconds.
Tested: Tested, the device does not disappear after the power cycle
1. ipmitool chassis power cycle
2. ipmitool fru list
3. The device appears once the chassis power is up
Change-Id: I11ba84bbd133184406548be9581bb22a4bbebe9c
Signed-off-by: Ankita Prasad <ankita.prasad@intel.com>
diff --git a/src/fru_device.cpp b/src/fru_device.cpp
index ad6f016..4afefca 100644
--- a/src/fru_device.cpp
+++ b/src/fru_device.cpp
@@ -62,7 +62,7 @@
static constexpr bool debug = false;
constexpr size_t maxFruSize = 512;
constexpr size_t maxEepromPageIndex = 255;
-constexpr size_t busTimeoutSeconds = 5;
+constexpr size_t busTimeoutSeconds = 10;
constexpr const char* blacklistPath = PACKAGE_DIR "blacklist.json";