Skip to content

Commit 59d8d12

Browse files
authored
Merge pull request #47 from tmobile/tmo-Fixed-inverted-modem-checks
Fixed flipped logic for murata checks
2 parents ac06a54 + 37d3385 commit 59d8d12

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

samples/tmo_shell/src/tmo_modem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static int tmo_modem_get_sock(int idx) {
8888
if (iface == NULL) {
8989
return -EINVAL;
9090
}
91-
if (strstr(iface->if_dev->dev->name, "murata")) {
91+
if (!strstr(iface->if_dev->dev->name, "murata")) {
9292
return -EINVAL;
9393
}
9494
sd = zsock_socket_ext(AF_INET, SOCK_STREAM, IPPROTO_TCP, iface);

samples/tmo_shell/src/tmo_shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ int cmd_modem(const struct shell *shell, size_t argc, char **argv)
12301230
shell_error(shell, "Interface %d not found", idx);
12311231
return -EINVAL;
12321232
}
1233-
if (strstr(iface->if_dev->dev->name, "murata")) {
1233+
if (!strstr(iface->if_dev->dev->name, "murata")) {
12341234
shell_error(shell, "dev - %s Not Supported; only Murata 1SC is supported", iface->if_dev->dev->name);
12351235
return -EINVAL;
12361236
}

samples/tmo_shell/src/tmo_web_demo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ int get_cell_strength(int *val)
115115
if (iface == NULL) {
116116
return -EINVAL;
117117
}
118-
if (strstr(iface->if_dev->dev->name, "murata")) {
118+
if (!strstr(iface->if_dev->dev->name, "murata")) {
119119
return -EINVAL;
120120
}
121121
int sd = zsock_socket_ext(AF_INET, SOCK_STREAM, IPPROTO_TCP, iface);

0 commit comments

Comments
 (0)