summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorKirill Pakhomov <k.pakhomov@yadro.com>2018-10-10 17:06:41 +0300
committerVernon Mauery <vernon.mauery@linux.intel.com>2018-10-15 22:45:04 +0000
commit4d1a5dd4a55b8886ce8fc7512578ba3438faf386 (patch)
treec0fca7298f8c01a339a5912848f6da3d25d73302 /scripts
parent4001191ac3489e26c2e04ea51e1eebcdc8120775 (diff)
downloadphosphor-host-ipmid-4d1a5dd4a55b8886ce8fc7512578ba3438faf386.tar.gz
phosphor-host-ipmid-4d1a5dd4a55b8886ce8fc7512578ba3438faf386.zip
Fix the exponent B in writesensors mako template
expB has been mistyped as exp() function, resulting in a build error upon providing bExp as signed integer in config.yaml Change-Id: Ibc7ed45e445c4f37b7a6ccdf10346177a3317b0b Signed-off-by: Kirill Pakhomov <k.pakhomov@yadro.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/writesensor.mako.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/writesensor.mako.cpp b/scripts/writesensor.mako.cpp
index a59e149..bbc80e3 100644
--- a/scripts/writesensor.mako.cpp
+++ b/scripts/writesensor.mako.cpp
@@ -44,7 +44,7 @@ extern const IdInfoMap sensors = {
readingType = sensor["sensorReadingType"]
multiplier = sensor.get("multiplierM", 1)
offsetB = sensor.get("offsetB", 0)
- exp = sensor.get("bExp", 0)
+ bExp = sensor.get("bExp", 0)
rExp = sensor.get("rExp", 0)
unit = sensor.get("unit", "")
scale = sensor.get("scale", 0)
@@ -69,8 +69,8 @@ extern const IdInfoMap sensors = {
mutability = sensor.get("mutability", "Mutability::Read")
%>
${entityID},${instance},${sensorType},"${path}","${sensorInterface}",
- ${readingType},${multiplier},${offsetB},${exp},
- ${offsetB * pow(10,exp)}, ${rExp}, ${hasScale},${scale},"${unit}",
+ ${readingType},${multiplier},${offsetB},${bExp},
+ ${offsetB * pow(10,bExp)}, ${rExp}, ${hasScale},${scale},"${unit}",
${updateFunc},${getFunc},Mutability(${mutability}),${sensorNameFunc},{
% for interface,properties in interfaces.items():
{"${interface}",{
OpenPOWER on IntegriCloud