client: change str representation of bool fields

This commit is contained in:
Tim Kourt 2017-04-28 10:35:43 -07:00 committed by Denis Kenzior
parent d5c7fea13d
commit 44e9e604f6
1 changed files with 2 additions and 2 deletions

View File

@ -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)