diff options
author | Kirill Pakhomov <k.pakhomov@yadro.com> | 2018-10-10 17:06:41 +0300 |
---|---|---|
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | 2018-10-15 22:45:04 +0000 |
commit | 4d1a5dd4a55b8886ce8fc7512578ba3438faf386 (patch) | |
tree | c0fca7298f8c01a339a5912848f6da3d25d73302 | |
parent | 4001191ac3489e26c2e04ea51e1eebcdc8120775 (diff) | |
download | phosphor-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>
-rw-r--r-- | scripts/writesensor.mako.cpp | 6 |
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}",{ |