Ver Fonte

[BC28] Support select operating band

luhuadong há 5 anos atrás
pai
commit
8be01caa65
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      class/bc28/at_device_bc28.c

+ 2 - 2
class/bc28/at_device_bc28.c

@@ -615,8 +615,8 @@ static void bc28_init_thread_entry(void *parameter)
             goto __exit;
         }
 
-        /* search band 8 */
-        if (at_obj_exec_cmd(device->client, resp, "AT+NBAND=8") != RT_EOK)
+        /* search band */
+        if (at_obj_exec_cmd(device->client, resp, "AT+NBAND=%d", AT_DEVICE_BC28_OP_BAND) != RT_EOK)
         {
             result = -RT_ERROR;
             LOG_E(">> AT+NBAND=8");