From f5b7712c64143fb2f23d264d1efe4a224953134f Mon Sep 17 00:00:00 2001 From: jyelon Date: Thu, 6 Jan 2022 17:59:59 -0500 Subject: [PATCH] Fix bug in modified drivenengine --- luprex/core/cpp/drivenengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luprex/core/cpp/drivenengine.cpp b/luprex/core/cpp/drivenengine.cpp index 69426444..907a5736 100644 --- a/luprex/core/cpp/drivenengine.cpp +++ b/luprex/core/cpp/drivenengine.cpp @@ -196,7 +196,7 @@ const std::string &DrivenEngine::drv_get_target(int chid) { bool DrivenEngine::drv_outgoing_empty(int chid) { int nbytes; const char *bytes; drv_peek_outgoing(chid, &nbytes, &bytes); - return (nbytes > 0); + return (nbytes == 0); } bool DrivenEngine::drv_get_channel_released(int chid) {