mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
zapit/src/zapit.cpp: change signal lock monitor (disabled at the moment)
Origin commit data
------------------
Commit: 296aee816c
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-10-10 (Wed, 10 Oct 2012)
This commit is contained in:
@@ -2134,10 +2134,6 @@ static bool zapit_parse_command(CBasicMessage::Header &rmsg, int connfd)
|
|||||||
|
|
||||||
void CZapit::run()
|
void CZapit::run()
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
time_t stime = time(0);
|
|
||||||
time_t curtime;
|
|
||||||
#endif
|
|
||||||
printf("[zapit] starting... tid %ld\n", syscall(__NR_gettid));
|
printf("[zapit] starting... tid %ld\n", syscall(__NR_gettid));
|
||||||
|
|
||||||
abort_zapit = 0;
|
abort_zapit = 0;
|
||||||
@@ -2186,14 +2182,15 @@ void CZapit::run()
|
|||||||
/* yuck, don't waste that much cpu time :) */
|
/* yuck, don't waste that much cpu time :) */
|
||||||
usleep(0);
|
usleep(0);
|
||||||
#if 0
|
#if 0
|
||||||
if(!standby && !CServiceScan::getInstance()->Scanning() &¤t_channel) {
|
static time_t stime = time(0);
|
||||||
curtime = time(0);
|
if(!standby && !CServiceScan::getInstance()->Scanning() && current_channel) {
|
||||||
|
time_t curtime = time(0);
|
||||||
|
//FIXME check if sig_delay needed */
|
||||||
if(sig_delay && (curtime - stime) > sig_delay) {
|
if(sig_delay && (curtime - stime) > sig_delay) {
|
||||||
stime = curtime;
|
stime = curtime;
|
||||||
uint16_t sig = live_fe->getSignalStrength();
|
fe_status_t status = live_fe->getStatus();
|
||||||
//if(sig < 8000)
|
printf("[zapit] frontend status %d\n", status);
|
||||||
if(sig < 28000) {
|
if (status != FE_HAS_LOCK) {
|
||||||
printf("[monitor] signal %d, trying to re-tune...\n", sig);
|
|
||||||
live_fe->retuneChannel();
|
live_fe->retuneChannel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user