yincheng.zhong
2024-01-24 48672f1db1e15655c83ff8590334df47225577d0
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;
    SwitchLoraSettings(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();