From f90f8eaf4e380de750924b230bb25bfeb96e76b8 Mon Sep 17 00:00:00 2001 From: Uwe Seimet <48174652+uweseimet@users.noreply.github.com> Date: Thu, 9 Nov 2023 00:39:00 +0100 Subject: [PATCH] Fix daynaport emulation regression (#1306) (#1318) --- cpp/devices/ctapdriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/devices/ctapdriver.cpp b/cpp/devices/ctapdriver.cpp index 6f394ae6..85fc2adc 100644 --- a/cpp/devices/ctapdriver.cpp +++ b/cpp/devices/ctapdriver.cpp @@ -337,7 +337,7 @@ bool CTapDriver::HasPendingPackets() const fds.revents = 0; poll(&fds, 1, 0); spdlog::trace(to_string(fds.revents) + " revents"); - return !(fds.revents & POLLIN); + return fds.revents & POLLIN; } // See https://stackoverflow.com/questions/21001659/crc32-algorithm-implementation-in-c-without-a-look-up-table-and-with-a-public-li