From 58b790f4d23214d3ab8e145c38df2ef8e5bed67c Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期日, 29 九月 2024 10:30:58 +0800 Subject: [PATCH] 1,删除无用代码,提高整齐度 --- keil/include/main/main.c | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/keil/include/main/main.c b/keil/include/main/main.c index 9d45cf1..84f4d6d 100644 --- a/keil/include/main/main.c +++ b/keil/include/main/main.c @@ -505,13 +505,11 @@ // rf_delay_ms(1000); // if(rf_continous_tx_send_data(tx_test_buf, TX_LEN) != OK) // { -//// DDL_Printf("tx fail \r\n"); //// rf_enter_continous_rx(); // } // else // { // error_cnt ++; -//// DDL_Printf("Tx cnt %d\r\n", cnt ); // } } if(rf_get_recv_flag() == RADIO_FLAG_RXDONE) @@ -523,14 +521,11 @@ // { // printf("0x%02x ", RxDoneParams.Payload[i]); // } -// DDL_Printf("\r\n"); error_cnt ++; -// DDL_Printf("###Rx cnt %d##\r\n", cnt); } if((rf_get_recv_flag() == RADIO_FLAG_RXTIMEOUT) || (rf_get_recv_flag() == RADIO_FLAG_RXERR)) { rf_set_recv_flag(RADIO_FLAG_IDLE); -// DDL_Printf("Rxerr\r\n"); } } void Board_LORA_NVIC_Init(GPIO_IRQ_HANDLER_T irq_handler) //LORA 中断配置 @@ -596,12 +591,10 @@ if(rf_continous_tx_send_data(tx_test_buf, TX_LEN) != 0) { error_cnt++; -// printf("LORA Init Fail"); } else { successful_cnt ++; -// printf("LORA Init OK\r\n"); } // while (rf_get_transmit_flag() == RADIO_FLAG_IDLE) ; // @@ -659,13 +652,11 @@ // rf_set_transmit_flag(RADIO_FLAG_TXDONE); if(rf_continous_tx_send_data(tx_test_buf, TX_LEN) != OK) { -// DDL_Printf("tx fail \r\n"); // rf_enter_continous_rx(); } else { successful_cnt ++; -// DDL_Printf("Tx cnt %d\r\n", cnt ); } // while (rf_get_transmit_flag() == RADIO_FLAG_IDLE) ; // -- Gitblit v1.9.3