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:
[CST] Focus
2014-02-28 13:56:57 +04:00
parent 731b6e53e4
commit cc6c0ec9cc

View File

@@ -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",