From 44e9e604f6e90efb09790c5a257ec922b0eb5007 Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Fri, 28 Apr 2017 10:35:43 -0700 Subject: [PATCH] client: change str representation of bool fields --- client/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/device.c b/client/device.c index 22a4f535..ae8b51c6 100644 --- a/client/device.c +++ b/client/device.c @@ -157,7 +157,7 @@ static const char *get_powered_tostr(const void *data) { const struct device *device = data; - return device->powered ? "yes" : "no"; + return device->powered ? "on" : "off"; } static void set_powered(void *data, struct l_dbus_message_iter *variant) @@ -178,7 +178,7 @@ static const char *get_scanning_tostr(const void *data) { const struct device *device = data; - return device->scanning ? "scanning" : ""; + return device->scanning ? "yes" : "no"; } static void set_scanning(void *data, struct l_dbus_message_iter *variant)