yincheng.zhong
2024-01-22 5634c27b87d185b213dc31c921f9b64e5303d368
Src/application/dw_app.c
@@ -253,8 +253,7 @@
  {
    current_count=HAL_LPTIM_ReadCounter(&hlptim1);
    target_count = GetUwbPollCount();
    if(target_count<0)
      target_count+=32768;
    SwitchLoraToSyncRec(UWB_CHANNEL_FRQ,5); //切换lora接收频点
    while(current_count<target_count||current_count>target_count+16384)
    {
        current_count=HAL_LPTIM_ReadCounter(&hlptim1);
@@ -263,7 +262,6 @@
            break;
        }
    }
    memcpy(&lora_start_poll_buff[ANC_ID_IDX],&g_com_map[DEV_ID],2);
    Radio.Send(lora_start_poll_buff, 4);
    UWB_Wkup();