Skip to content

Commit dc9f66f

Browse files
committed
Fixed build with SMS disabled
Added missing check for SMS enable Signed-off-by: Jared Baumann <[email protected]>
1 parent 5bd4a8e commit dc9f66f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/tmo_shell/src/tmo_shell.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,9 +1432,9 @@ SHELL_STATIC_SUBCMD_SET_CREATE(
14321432
#endif /* CONFIG_MODEM */
14331433
SHELL_CMD(send, NULL, "<socket> <payload>", udp_send),
14341434
SHELL_CMD(sendb, NULL, "<socket> <size>", udp_sendb),
1435-
#if CONFIG_MODEM
1435+
#if CONFIG_MODEM && CONFIG_MODEM_SMS
14361436
SHELL_CMD(sendsms, NULL, "<socket> <phone number> <message>", sock_sendsms),
1437-
#endif /* CONFIG_MODEM */
1437+
#endif /* CONFIG_MODEM && CONFIG_MODEM_SMS */
14381438
SHELL_CMD(sendto, NULL, "<socket> <ip> <port> <payload>", sock_sendto),
14391439
SHELL_CMD(xfersz, NULL, "<size>", sock_mxfragment), SHELL_SUBCMD_SET_END);
14401440

0 commit comments

Comments
 (0)