summaryrefslogtreecommitdiffstats
path: root/sensors/buildjson.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sensors/buildjson.cpp')
-rw-r--r--sensors/buildjson.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/sensors/buildjson.cpp b/sensors/buildjson.cpp
index 7c4c7d6..4bf5ea7 100644
--- a/sensors/buildjson.cpp
+++ b/sensors/buildjson.cpp
@@ -79,6 +79,9 @@ std::map<std::string, struct SensorConfig>
std::map<std::string, struct SensorConfig> config;
auto sensors = data["sensors"];
+ /* TODO: If no sensors, this is invalid, and we should except here or during
+ * parsing.
+ */
for (const auto& sensor : sensors)
{
config[sensor["name"]] = sensor.get<struct SensorConfig>();
OpenPOWER on IntegriCloud