diff options
Diffstat (limited to 'controller.cpp')
-rw-r--r-- | controller.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/controller.cpp b/controller.cpp index f0ba4c2..f945034 100644 --- a/controller.cpp +++ b/controller.cpp @@ -14,12 +14,14 @@ * limitations under the License. */ -#include <iostream> -#include <string> -#include <algorithm> +#include "config.h" + #include "argument.hpp" #include "physical.hpp" -#include "config.h" + +#include <algorithm> +#include <iostream> +#include <string> static void ExitWithError(const char* err, char** argv) { @@ -68,8 +70,8 @@ int main(int argc, char** argv) std::replace(name.begin(), name.end(), '-', '_'); // Unique bus name representing a single LED. - auto busName = std::string(BUSNAME) + '.' + name; - auto objPath = std::string(OBJPATH) + '/' + name; + auto busName = std::string(BUSNAME) + '.' + name; + auto objPath = std::string(OBJPATH) + '/' + name; // Get a handle to system dbus. auto bus = std::move(sdbusplus::bus::new_default()); @@ -85,7 +87,7 @@ int main(int argc, char** argv) bus.request_name(busName.c_str()); /** @brief Wait for client requests */ - while(true) + while (true) { // Handle dbus message / signals discarding unhandled bus.process_discard(); |