清除一些无用数据
This commit is contained in:
@@ -36,7 +36,7 @@ static void my_button_handler(button_event_t evt) {
|
|||||||
// SYS_LOG_INF("[Event] DOUBLE_CLICK");
|
// SYS_LOG_INF("[Event] DOUBLE_CLICK");
|
||||||
// sertrf_rf_switch(1);
|
// sertrf_rf_switch(1);
|
||||||
// aes_test();
|
// aes_test();
|
||||||
key_test();
|
// key_test();
|
||||||
break;
|
break;
|
||||||
case EVT_LONG_PRESS: //长按
|
case EVT_LONG_PRESS: //长按
|
||||||
SYS_LOG_INF("[Event] LONG_PRESS");
|
SYS_LOG_INF("[Event] LONG_PRESS");
|
||||||
|
|||||||
@@ -182,22 +182,6 @@ void app_thread(void* arg)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
resend_recv_data(&sertrf.resend_device, 0);
|
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);
|
os_thread_sleep(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user