diff options
author | Forest Bond <forest.bond@rapidrollout.com> | 2013-03-28 10:22:20 -0400 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2013-03-28 09:47:32 -0500 |
commit | b0ad1ecb8fff1eac095eeff39ad50022c6bb8997 (patch) | |
tree | 3a06a7e7ef60168abf7cdb557da32de41239260f /src/modem.c | |
parent | 9dd7bb365fb7971ee5aebfbbbc51e7c3ea2df491 (diff) | |
download | ofono-b0ad1ecb8fff1eac095eeff39ad50022c6bb8997.tar.bz2 |
modem: Allow setting boolean properties
Diffstat (limited to 'src/modem.c')
-rw-r--r-- | src/modem.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |