X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FSLCommandHandler.cpp;h=62e70d83e53bae1781012875f9e2075a9b161081;hb=855a3a98394762b90bd86e7522110057a616fa6e;hp=40c0066ad3d400f0467a8ac956f32b43e5b17cc3;hpb=8354f74710bf154d9b31335958b0189f10d6a408;p=deb_libcec.git diff --git a/src/lib/implementations/SLCommandHandler.cpp b/src/lib/implementations/SLCommandHandler.cpp index 40c0066..62e70d8 100644 --- a/src/lib/implementations/SLCommandHandler.cpp +++ b/src/lib/implementations/SLCommandHandler.cpp @@ -37,7 +37,8 @@ using namespace CEC; CSLCommandHandler::CSLCommandHandler(CCECBusDevice *busDevice) : - CCECCommandHandler(busDevice) + CCECCommandHandler(busDevice), + m_bAwaitingReceiveFailed(false) { } @@ -88,3 +89,21 @@ bool CSLCommandHandler::HandleCommand(const cec_command &command) return bHandled; } + + +void CSLCommandHandler::HandlePoll(const cec_logical_address iInitiator, const cec_logical_address iDestination) +{ + CCECCommandHandler::HandlePoll(iInitiator, iDestination); + m_bAwaitingReceiveFailed = true; +} + +bool CSLCommandHandler::HandleReceiveFailed(void) +{ + if (m_bAwaitingReceiveFailed) + { + m_bAwaitingReceiveFailed = false; + return false; + } + + return true; +}