modem: Allow setting boolean properties

This commit is contained in:
Forest Bond 2013-03-28 10:22:20 -04:00 committed by Denis Kenzior
parent 9dd7bb365f
commit b0ad1ecb8f
1 changed files with 2 additions and 1 deletions

View File

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