From b0ad1ecb8fff1eac095eeff39ad50022c6bb8997 Mon Sep 17 00:00:00 2001 From: Forest Bond Date: Thu, 28 Mar 2013 10:22:20 -0400 Subject: modem: Allow setting boolean properties --- src/modem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modem.c') diff --git a/src/modem.c b/src/modem.c index 79cea793..95e60939 100644 --- a/src/modem.c +++ b/src/modem.c @@ -1659,7 +1659,8 @@ static int set_modem_property(struct ofono_modem *modem, const char *name, DBG("modem %p property %s", modem, name); if (type != PROPERTY_TYPE_STRING && - type != PROPERTY_TYPE_INTEGER) + type != PROPERTY_TYPE_INTEGER && + type != PROPERTY_TYPE_BOOLEAN) return -EINVAL; property = g_try_new0(struct modem_property, 1); -- cgit v1.2.3