Fix bug in modified drivenengine

This commit is contained in:
2022-01-06 17:59:59 -05:00
parent dc2237e5c1
commit f5b7712c64

View File

@@ -196,7 +196,7 @@ const std::string &DrivenEngine::drv_get_target(int chid) {
bool DrivenEngine::drv_outgoing_empty(int chid) { bool DrivenEngine::drv_outgoing_empty(int chid) {
int nbytes; const char *bytes; int nbytes; const char *bytes;
drv_peek_outgoing(chid, &nbytes, &bytes); drv_peek_outgoing(chid, &nbytes, &bytes);
return (nbytes > 0); return (nbytes == 0);
} }
bool DrivenEngine::drv_get_channel_released(int chid) { bool DrivenEngine::drv_get_channel_released(int chid) {