Skip to content

Commit

Permalink
Merge pull request #47 from tmobile/tmo-Fixed-inverted-modem-checks
Browse files Browse the repository at this point in the history
Fixed flipped logic for murata checks
  • Loading branch information
johnlange2 authored Dec 16, 2022
2 parents ac06a54 + 37d3385 commit 59d8d12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion samples/tmo_shell/src/tmo_modem.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static int tmo_modem_get_sock(int idx) {
if (iface == NULL) {
return -EINVAL;
}
if (strstr(iface->if_dev->dev->name, "murata")) {
if (!strstr(iface->if_dev->dev->name, "murata")) {
return -EINVAL;
}
sd = zsock_socket_ext(AF_INET, SOCK_STREAM, IPPROTO_TCP, iface);
Expand Down
2 changes: 1 addition & 1 deletion samples/tmo_shell/src/tmo_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ int cmd_modem(const struct shell *shell, size_t argc, char **argv)
shell_error(shell, "Interface %d not found", idx);
return -EINVAL;
}
if (strstr(iface->if_dev->dev->name, "murata")) {
if (!strstr(iface->if_dev->dev->name, "murata")) {
shell_error(shell, "dev - %s Not Supported; only Murata 1SC is supported", iface->if_dev->dev->name);
return -EINVAL;
}
Expand Down
2 changes: 1 addition & 1 deletion samples/tmo_shell/src/tmo_web_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ int get_cell_strength(int *val)
if (iface == NULL) {
return -EINVAL;
}
if (strstr(iface->if_dev->dev->name, "murata")) {
if (!strstr(iface->if_dev->dev->name, "murata")) {
return -EINVAL;
}
int sd = zsock_socket_ext(AF_INET, SOCK_STREAM, IPPROTO_TCP, iface);
Expand Down

0 comments on commit 59d8d12

Please sign in to comment.