Skip to content

Commit

Permalink
Update uart_select_example_main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
diplfranzhoepfinger authored Aug 18, 2024
1 parent d7ca8b9 commit d836ea0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit d836ea0

Please sign in to comment.