X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d290a6895aaba9660184b2ac9c1bb90d81ae494c..33a8f42447b5f3655b47f15f7c2a4cf45af5c4bb:/lib/dvb_ci/dvbci_camgr.cpp diff --git a/lib/dvb_ci/dvbci_camgr.cpp b/lib/dvb_ci/dvbci_camgr.cpp index cd10ae33..42317b3e 100644 --- a/lib/dvb_ci/dvbci_camgr.cpp +++ b/lib/dvb_ci/dvbci_camgr.cpp @@ -1,5 +1,6 @@ /* DVB CI CA Manager */ +#include #include eDVBCICAManagerSession::eDVBCICAManagerSession(eDVBCISlot *tslot) @@ -15,27 +16,28 @@ eDVBCICAManagerSession::~eDVBCICAManagerSession() int eDVBCICAManagerSession::receivedAPDU(const unsigned char *tag, const void *data, int len) { - printf("SESSION(%d)/CA %02x %02x %02x: ", session_nb, tag[0], tag[1],tag[2]); + eDebugNoNewLine("SESSION(%d)/CA %02x %02x %02x: ", session_nb, tag[0], tag[1],tag[2]); for (int i=0; iresendCAPMT(); - printf("\n"); + std::sort(caids.begin(), caids.end()); + eDebug(""); + eDVBCIInterfaces::getInstance()->recheckPMTHandlers(); break; default: - printf("unknown APDU tag 9F 80 %02x\n", tag[2]); + eDebug("unknown APDU tag 9F 80 %02x", tag[2]); break; } } @@ -54,7 +56,7 @@ int eDVBCICAManagerSession::doAction() return 0; } case stateFinal: - printf("stateFinal und action! kann doch garnicht sein ;)\n"); + eDebug("stateFinal und action! kann doch garnicht sein ;)"); default: return 0; } @@ -64,8 +66,8 @@ int eDVBCICAManagerSession::sendCAPMT(unsigned char *data, int len) { const unsigned char tag[3]={0x9F, 0x80, 0x32}; // ca_pmt - sendAPDU(tag, data, len); - + sendAPDU(tag, data, len); + return 0; }