From cc6c0ec9cc65a3bb41f1f2396a00a08977cb2c40 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 28 Feb 2014 13:56:57 +0400 Subject: [PATCH] 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: https://github.com/neutrino-images/ni-neutrino/commit/3a4b873b88c94d620b5d4f2e8eb7742afa293320 Author: [CST] Focus Date: 2014-02-28 (Fri, 28 Feb 2014) --- src/zapit/src/getservices.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/zapit/src/getservices.cpp b/src/zapit/src/getservices.cpp index 786443b88..f9bb9748d 100644 --- a/src/zapit/src/getservices.cpp +++ b/src/zapit/src/getservices.cpp @@ -820,6 +820,12 @@ void CServiceManager::CopyFile(char * from, char * to) 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) { case FE_QPSK: /* satellite */ fprintf(fd, "\t\n",