Fix sensorReadingType value for vrm_vdd_temp_sensor during parsing
At present sensorReadingType value for vrm_vdd_temp_sensor is
set to 0 in MRW file. Due to this sensor value is not retrieved
by IPMI sdr list command.
Temporarily forcing the value to 1 till the same is fixed in MRW
with issue openbmc/openbmc#3026
Change-Id: Id67f16d814d06495023caad49088e2de5ae17fa9
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
diff --git a/gen_ipmi_sensor.pl b/gen_ipmi_sensor.pl
index 9cd6728..f975290 100755
--- a/gen_ipmi_sensor.pl
+++ b/gen_ipmi_sensor.pl
@@ -145,6 +145,11 @@
my $rExp = $sensorTypeConfig->{$sensorName}->{"rExp"};
my $unit = $sensorTypeConfig->{$sensorName}->{"unit"};
my $scale = $sensorTypeConfig->{$sensorName}->{"scale"};
+ # TODO: openbmc/openbmc#3026
+ # Fix IPMI_SENSOR_READING_TYPE for vrm_vdd_temp_sensor
+ if ($sensorName eq "vrm_vdd_temp_sensor") {
+ $sensorReadingType = 1;
+ }
$data{'MULTIPLIER_M'} = $multiplierM;
$data{'OFFSET_B'} = $offsetB;
$data{'B_EXP'} = $bExp;