WXK
2024-03-13 61d0c713d6a39c970f4900c4db5c3626c34aea11
Src/application/dw_app.c
@@ -264,7 +264,7 @@
    memcpy(&lora_start_poll_buff[ANC_ID_IDX],&g_com_map[DEV_ID],2);
    Radio.Send(lora_start_poll_buff, 4);
    UWB_Wkup();   
    delay_us(700);
    delay_us(1000);
    MBXANCPoll();
   dwt_entersleep();
    next_poll_state = Next_Poll_LORASYNC;
@@ -285,7 +285,7 @@
//          target_count = GetLoraSyncCount()-(18000)/LPTIMER_LSB+sync_lost_count*1000;
//      }else
      {
        target_count = GetLoraSyncCount()-(18000)/LPTIMER_LSB;  //比上次收到的lora提前17ms唤醒(lora接收大概17ms),如果在同步间隔内,则会快速进入休眠。
        target_count = GetLoraSyncCount()-(23000)/LPTIMER_LSB;  //比上次收到的lora提前17ms唤醒(lora接收大概17ms),如果在同步间隔内,则会快速进入休眠。
      }
      if(target_count<0)
      target_count+=32768;