Compare commits

...

2 Commits

Author SHA1 Message Date
diplfranzhoepfinger
d7cd449ac6
Merge d836ea0107 into 59e1838270 2024-09-10 13:59:22 +08:00
diplfranzhoepfinger
d836ea0107
Update uart_select_example_main.c 2024-08-18 20:28:04 +02:00

View File

@ -7,6 +7,7 @@
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include <string.h>
#include <sys/fcntl.h>
#include <sys/errno.h>
#include <sys/unistd.h>
@ -63,7 +64,7 @@ static void uart_select_task(void *arg)
s = select(fd + 1, &rfds, NULL, NULL, &tv);
if (s < 0) {
ESP_LOGE(TAG, "Select failed: errno %d", errno);
ESP_LOGE(TAG, "Select failed: errno %d (%s)", errno, strerror(errno));
break;
} else if (s == 0) {
ESP_LOGI(TAG, "Timeout has been reached and nothing has been received");