mirror of git://git.sysmocom.de/ofono
modem: Allow setting boolean properties
This commit is contained in:
parent
9dd7bb365f
commit
b0ad1ecb8f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue