From 23bac0cb31085f299993e1c5b9937ad24194d155 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Fri, 28 Aug 2026 19:30:11 +0300 Subject: [PATCH] Minor change --- gazebo/Arduino.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gazebo/Arduino.h b/gazebo/Arduino.h index b3c66e9..4ad4a7d 100644 --- a/gazebo/Arduino.h +++ b/gazebo/Arduino.h @@ -140,7 +140,7 @@ public: // to implement for Windows, see https://stackoverflow.com/a/71992965/6850197 if (!isatty(STDIN_FILENO)) return 0; struct pollfd pfd = { .fd = STDIN_FILENO, .events = POLLIN }; - return poll(&pfd, 1, 0) > 0; + return poll(&pfd, 1, 0) > 0 && (pfd.revents & POLLIN); } int read() {