WXK
2024-09-11 6a19a2e2e7c86b9df50e57d36e62fd4cb9079fbf
Src/radio/Lora.c
@@ -258,6 +258,7 @@
int32_t target_count;
uint8_t shengji_flag,time=5;
extern uint32_t uwbled,gpsled,loraled,powerled;
uint8_t test_lora_flag;
void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr )
{    uint16_t checksum1;
        BufferSize = size;
@@ -283,6 +284,7 @@
            {
                wg_state = WG_Connected;
                wg_report_id = source_id;
                test_lora_flag=1;
            }
            if(!memcmp(&wg_report_id,&RX_Buffer[SOURCE_ID_IDX],2))
            {
@@ -331,7 +333,7 @@
                             }
                            HAL_GPIO_WritePin(GPIOC, GPIO_PIN_7, GPIO_PIN_SET);
                            HAL_GPIO_WritePin(GPIOC, GPIO_PIN_13, GPIO_PIN_SET);    
                            memcpy(&xiafayuyin_data,&RX_Buffer[PWTAG_WRITE_VALUE_IDX],BufferSize-PWTAG_WRITE_VALUE_IDX);
                            memcpy(&xiafayuyin_data,&RX_Buffer[PWTAG_WRITE_VALUE_IDX],BufferSize-PWTAG_WRITE_VALUE_IDX-2);
                            yuyin_sendflag=1;           
                            yuyinzidongguan_time=0;             
                            yuyin_no_sleep_flag=1;