Reorder json writing for sensor demo
The json must be written before the dbus interfaces
are set so that we aren't writing json when the sensors
are reading the file.
Change-Id: I6feb0ecb97bffb9acd69d7a564bb7a0849654a11
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/EntityManager.cpp b/src/EntityManager.cpp
index 1d5e971..19a370b 100644
--- a/src/EntityManager.cpp
+++ b/src/EntityManager.cpp
@@ -897,10 +897,10 @@
// todo: for now, only add new configurations, unload to come later
// unloadOverlays();
loadOverlays(newConfiguration);
- // only post new items to bus for now
- postToDbus(newConfiguration, objServer);
// this line to be removed in future
writeJsonFiles(systemConfiguration);
+ // only post new items to bus for now
+ postToDbus(newConfiguration, objServer);
registerCallbacks(dbusMatches, threadRunning, systemConfiguration,
objServer);