From: Ronny Strutz Date: Thu, 10 Nov 2005 14:42:43 +0000 (+0000) Subject: set state on removal and insert X-Git-Tag: 2.6.0~5366 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/095b5e84fb25bab4505fc568c1e33e6d1fc6c876 set state on removal and insert --- diff --git a/lib/dvb_ci/dvbci.cpp b/lib/dvb_ci/dvbci.cpp index 315d2ae5..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; @@ -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); }