Skip to content

Commit 8be01ca

Browse files
committed
[BC28] Support select operating band
1 parent 20f269f commit 8be01ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

class/bc28/at_device_bc28.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,8 @@ static void bc28_init_thread_entry(void *parameter)
615615
goto __exit;
616616
}
617617

618-
/* search band 8 */
619-
if (at_obj_exec_cmd(device->client, resp, "AT+NBAND=8") != RT_EOK)
618+
/* search band */
619+
if (at_obj_exec_cmd(device->client, resp, "AT+NBAND=%d", AT_DEVICE_BC28_OP_BAND) != RT_EOK)
620620
{
621621
result = -RT_ERROR;
622622
LOG_E(">> AT+NBAND=8");

0 commit comments

Comments
 (0)