mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
zapit/src/getservices.cpp: try to add workaround for reported bug,
under some circumstances sat name= written to services instead of cable name=.
Real bug reason unknown yet
Origin commit data
------------------
Commit: 3a4b873b88
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-02-28 (Fri, 28 Feb 2014)
This commit is contained in:
@@ -820,6 +820,12 @@ void CServiceManager::CopyFile(char * from, char * to)
|
|||||||
|
|
||||||
void CServiceManager::WriteSatHeader(FILE * fd, sat_config_t &config)
|
void CServiceManager::WriteSatHeader(FILE * fd, sat_config_t &config)
|
||||||
{
|
{
|
||||||
|
/* FIXME hack */
|
||||||
|
if ((config.position & 0xF00) == 0xF00)
|
||||||
|
config.deltype = FE_QAM;
|
||||||
|
else if ((config.position & 0xF00) == 0xE00)
|
||||||
|
config.deltype = FE_OFDM;
|
||||||
|
|
||||||
switch (config.deltype) {
|
switch (config.deltype) {
|
||||||
case FE_QPSK: /* satellite */
|
case FE_QPSK: /* satellite */
|
||||||
fprintf(fd, "\t<sat name=\"%s\" position=\"%hd\" diseqc=\"%hd\" uncommited=\"%hd\">\n",
|
fprintf(fd, "\t<sat name=\"%s\" position=\"%hd\" diseqc=\"%hd\" uncommited=\"%hd\">\n",
|
||||||
|
Reference in New Issue
Block a user