X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FANCommandHandler.cpp;h=1df94fa061c1a194936737bf1c7310d5a14b04fd;hb=5477a250b595adb296ed42a88abab002981f4761;hp=bf9dea52a25d982c027bc5345f06421f0094561a;hpb=b5e7f745432c989c382b7729d64ea4a45c9dd49b;p=deb_libcec.git diff --git a/src/lib/implementations/ANCommandHandler.cpp b/src/lib/implementations/ANCommandHandler.cpp index bf9dea5..1df94fa 100644 --- a/src/lib/implementations/ANCommandHandler.cpp +++ b/src/lib/implementations/ANCommandHandler.cpp @@ -33,6 +33,7 @@ #include "ANCommandHandler.h" #include "../devices/CECBusDevice.h" #include "../CECProcessor.h" +#include "../LibCEC.h" using namespace CEC; @@ -62,10 +63,7 @@ bool CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command) if (key.keycode != CEC_USER_CONTROL_CODE_UNKNOWN) { - CStdString strLog; - strLog.Format("key pressed: %1x", key.keycode); - m_busDevice->AddLog(CEC_LOG_DEBUG, strLog); - + CLibCEC::AddLog(CEC_LOG_DEBUG, "key pressed: %1x", key.keycode); m_busDevice->GetProcessor()->AddKey(key); } }