X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb_ci%2Fdvbci_mmi.cpp;h=0efe6b824f1c5f469f5f0a2fffdb35eeac1b58a4;hp=a6a0c8b4ad4591b4b013704f30b7f7b1e7e52095;hb=f1515e774761f54062c718ef23361800df65accb;hpb=ef91de1b6462606a6377a2e05a1bbac50c20163d diff --git a/lib/dvb_ci/dvbci_mmi.cpp b/lib/dvb_ci/dvbci_mmi.cpp index a6a0c8b..0efe6b8 100644 --- a/lib/dvb_ci/dvbci_mmi.cpp +++ b/lib/dvb_ci/dvbci_mmi.cpp @@ -19,12 +19,12 @@ return list; eDVBCIMMISession::eDVBCIMMISession(eDVBCISlot *tslot) { slot = tslot; - slot->mmi_session = this; + slot->setMMIManager(this); } eDVBCIMMISession::~eDVBCIMMISession() { - slot->mmi_session = 0; + slot->setMMIManager(NULL); } int eDVBCIMMISession::receivedAPDU(const unsigned char *tag, const void *data, int len) @@ -49,7 +49,6 @@ int eDVBCIMMISession::receivedAPDU(const unsigned char *tag, const void *data, i unsigned char *d=(unsigned char*)data; unsigned char *max=((unsigned char*)d) + len; int textlen = len - 2; - int i; printf("in enq\n"); @@ -141,8 +140,9 @@ int eDVBCIMMISession::doAction() unsigned char tag[]={0x9f, 0x88, 0x02}; unsigned char data[]={0x01, 0x01}; sendAPDU(tag, data, 2); - state=stateFakeOK; - return 1; + state=stateIdle; + //state=stateFakeOK; + //return 1; break; } case stateFakeOK: