mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
zapit/src/frontend.cpp: close fd in standby
This commit is contained in:
@@ -222,7 +222,11 @@ bool CFrontend::Open(void)
|
|||||||
//secSetVoltage(SEC_VOLTAGE_OFF, 15);
|
//secSetVoltage(SEC_VOLTAGE_OFF, 15);
|
||||||
secSetVoltage(SEC_VOLTAGE_13, 15);
|
secSetVoltage(SEC_VOLTAGE_13, 15);
|
||||||
secSetTone(SEC_TONE_OFF, 15);
|
secSetTone(SEC_TONE_OFF, 15);
|
||||||
sendDiseqcPowerOn();
|
|
||||||
|
diseqc_t diseqcType = (diseqc_t) config.diseqcType;
|
||||||
|
config.diseqcType = NO_DISEQC;
|
||||||
|
setDiseqcType(diseqcType);
|
||||||
|
|
||||||
currentTransponder.TP_id = 0;
|
currentTransponder.TP_id = 0;
|
||||||
|
|
||||||
standby = false;
|
standby = false;
|
||||||
@@ -242,6 +246,8 @@ void CFrontend::Close(void)
|
|||||||
secSetTone(SEC_TONE_OFF, 15);
|
secSetTone(SEC_TONE_OFF, 15);
|
||||||
tuned = false;
|
tuned = false;
|
||||||
standby = true;;
|
standby = true;;
|
||||||
|
close(fd);
|
||||||
|
fd = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CFrontend::setMasterSlave(bool _slave)
|
void CFrontend::setMasterSlave(bool _slave)
|
||||||
|
Reference in New Issue
Block a user