mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Fix tsk watchdog when running spp vfs demo
This commit is contained in:
parent
ca00390174
commit
a353e1d235
@ -53,6 +53,9 @@ static void spp_read_handle(void * param)
|
||||
int size = 0;
|
||||
int fd = (int)param;
|
||||
do {
|
||||
/* controll the log frequency, retry after 1s */
|
||||
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
||||
|
||||
size = read (fd, spp_data, SPP_DATA_LEN);
|
||||
ESP_LOGI(SPP_TAG, "fd = %d data_len = %d", fd, size);
|
||||
if (size == -1) {
|
||||
|
@ -61,6 +61,9 @@ static void spp_write_handle(void * param)
|
||||
int fd = (int)param;
|
||||
printf("%s %d %p\n", __func__,fd,param);
|
||||
do {
|
||||
/*Controll the log frequency, retry after 1s*/
|
||||
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
||||
|
||||
size = write (fd, spp_data, SPP_DATA_LEN);
|
||||
ESP_LOGI(SPP_TAG, "fd = %d data_len = %d",fd, size);
|
||||
if (size == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user