@ -1175,6 +1175,10 @@ void ResourceManager::DetectDevicesCoroutine()
LOG_INFO ( " ------------------------------------------------------ " ) ;
LOG_INFO ( " | Detecting I2C DIMM modules | " ) ;
LOG_INFO ( " ------------------------------------------------------ " ) ;
detection_string = " Reading DRAM SPD Information " ;
DetectionProgressChanged ( ) ;
for ( unsigned int bus = 0 ; bus < busses . size ( ) & & IsAnyDimmDetectorEnabled ( detector_settings ) ; bus + + )
{
IF_DRAM_SMBUS ( busses [ bus ] - > pci_vendor , busses [ bus ] - > pci_device )
@ -1938,12 +1942,12 @@ bool ResourceManager::IsAnyDimmDetectorEnabled(json &detector_settings)
{
for ( unsigned int i2c_detector_idx = 0 ; i2c_detector_idx < i2c_dimm_device_detectors . size ( ) & & detection_is_required . load ( ) ; i2c_detector_idx + + )
{
detecti on_string = i2c_dimm_device_detectors [ i2c_detector_idx ] . name . c_str ( ) ;
std: : string detector_ name _string = i2c_dimm_device_detectors [ i2c_detector_idx ] . name . c_str ( ) ;
/*-------------------------------------------------*\
| Check if this detector is enabled |
\ * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
if ( detector_settings . contains ( " detectors " ) & & detector_settings [ " detectors " ] . contains ( detect i on_string) & &
detector_settings [ " detectors " ] [ detect i on_string] = = true )
if ( detector_settings . contains ( " detectors " ) & & detector_settings [ " detectors " ] . contains ( detect or_ name _string) & &
detector_settings [ " detectors " ] [ detect or_ name _string] = = true )
{
return true ;
}