X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/a910d779836f8368bd7986dae6d25615ca6ca9e9..8f01a41693ff4b01a224e9ea2f9a26538ec20414:/lib/dvb_ci/dvbci.cpp diff --git a/lib/dvb_ci/dvbci.cpp b/lib/dvb_ci/dvbci.cpp index e6e3237d..72dfd388 100644 --- a/lib/dvb_ci/dvbci.cpp +++ b/lib/dvb_ci/dvbci.cpp @@ -7,6 +7,8 @@ #include #include +#include + eDVBCIInterfaces::eDVBCIInterfaces() { int num_ci = 0; @@ -30,7 +32,7 @@ eDVBCIInterfaces::eDVBCIInterfaces() ++num_ci; } - eDebug("done, found %d common interface slots"); + eDebug("done, found %d common interface slots", num_ci); } eDVBCIInterfaces::~eDVBCIInterfaces() @@ -62,6 +64,8 @@ void eDVBCISlot::data(int what) state = stateRemoved; printf("ci removed\n"); notifier->setRequested(eSocketNotifier::Read); + //HACK + eDVBCI_UI::getInstance()->setState(0,0); } return; } @@ -74,6 +78,10 @@ void eDVBCISlot::data(int what) if(state != stateInserted) { state = stateInserted; eDebug("ci inserted"); + + //HACK + eDVBCI_UI::getInstance()->setState(0,1); + /* enable PRI to detect removal or errors */ notifier->setRequested(eSocketNotifier::Read|eSocketNotifier::Priority|eSocketNotifier::Write); }