WXK
2025-03-31 5a577b9f27adb2e9fc23f3776153999e18c97e9a
Src/application/dw_mbx_tag.c
@@ -308,6 +308,7 @@
#define LORA_REPORT_MAXANC_NUM  14
extern float Height;
u8 tarray[20]= {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
 extern  u8 lora_busy_flag;
void LoraReportPoll(void)
{
    // delay_ms(100);
@@ -378,6 +379,9 @@
    checksum = Checksum_u16(lora_sendbuffer,4*report_ancnum+ANCID_IDX);
    memcpy(&lora_sendbuffer[ANCID_IDX+report_ancnum*4],&checksum,2);
//    HAL_NVIC_DisableIRQ(EXTI4_15_IRQn);
//    HAL_GPIO_WritePin(RADIO_NSS_GPIO_Port, RADIO_NSS_Pin, GPIO_PIN_RESET);
//    HAL_GPIO_WritePin(SPIx_CS_GPIO, SPIx_CS, GPIO_PIN_SET);
    lora_busy_flag=1;
    Radio.Send(lora_sendbuffer,ANCID_IDX+report_ancnum*4+2);
    LED_TB_ON;
    bat_percent=Get_Battary();