drivers: modem_cellular: allow leaving out the chat_filter parameter
Allow not specifying the chat_filter parameter in a device definition, which is equivalent to setting it to "". Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
This commit is contained in:
parent
c08b66cfee
commit
fd5c76ddfd
1 changed files with 1 additions and 1 deletions
|
|
@ -1516,7 +1516,7 @@ static int modem_cellular_init(const struct device *dev)
|
|||
.delimiter = data->chat_delimiter,
|
||||
.delimiter_size = strlen(data->chat_delimiter),
|
||||
.filter = data->chat_filter,
|
||||
.filter_size = strlen(data->chat_filter),
|
||||
.filter_size = data->chat_filter ? strlen(data->chat_filter) : 0,
|
||||
.argv = data->chat_argv,
|
||||
.argv_size = ARRAY_SIZE(data->chat_argv),
|
||||
.unsol_matches = unsol_matches,
|
||||
|
|
|
|||
Loading…
Reference in a new issue