diff --git a/app/drivers/sertrf/key.c b/app/drivers/sertrf/key.c index 9d89c7e..930163d 100644 --- a/app/drivers/sertrf/key.c +++ b/app/drivers/sertrf/key.c @@ -36,7 +36,7 @@ static void my_button_handler(button_event_t evt) { // SYS_LOG_INF("[Event] DOUBLE_CLICK"); // sertrf_rf_switch(1); // aes_test(); - key_test(); + // key_test(); break; case EVT_LONG_PRESS: //长按 SYS_LOG_INF("[Event] LONG_PRESS"); diff --git a/app/drivers/sertrf/sertrf.c b/app/drivers/sertrf/sertrf.c index 5d03d37..53d0ae9 100644 --- a/app/drivers/sertrf/sertrf.c +++ b/app/drivers/sertrf/sertrf.c @@ -182,22 +182,6 @@ void app_thread(void* arg) break; } resend_recv_data(&sertrf.resend_device, 0); - // static uint8_t count = 0; - // count++; - // if(count > 100) - // { - // // resend_send_cmd(&sertrf.resend_device, RESEND_CMD_ACK, 0); - // resend_send_data(&sertrf.resend_device, RESEND_CMD_GET_PARAM, NULL, 0, 0); - // // count = 0; - // } - // uint32_t app_size = app_device_get_rx_length(&sertrf.device); - - // if(app_size > 0) - // { - // uint8_t data[app_size]; - // app_device_read(&sertrf.device, data, app_size,0); - // printf("data:%d:%s\n", app_size,data); - // } os_thread_sleep(1); }