Advertisement
svenhoefer

Untitled

Jul 14th, 2021
1,499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.14 KB | None | 0 0
  1. diff --git a/src/zapit/src/femanager.cpp b/src/zapit/src/femanager.cpp
  2. index 1ba9e2d4c..903b8ef6a 100644
  3. --- a/src/zapit/src/femanager.cpp
  4. +++ b/src/zapit/src/femanager.cpp
  5. @@ -41,7 +41,7 @@
  6.  #include <hardware/dmx.h>
  7.  #include <OpenThreads/ScopedLock>
  8.  
  9. -static int fedebug = 0;
  10. +static int fedebug = 1;
  11.  static int unused_demux;
  12.  static int noSameFE = 0;
  13.  extern Zapit_config zapitCfg;
  14. @@ -598,7 +598,12 @@ CFrontend * CFEManager::getFrontend(CZapitChannel * channel)
  15.                 if (mfe->getMode() == CFrontend::FE_MODE_UNUSED || CFrontend::linked(mfe->getMode()))
  16.                         continue;
  17.  
  18. -               if (mfe->hasSat()) {
  19. +               if ((mfe->hasCable() && SAT_POSITION_CABLE(satellitePosition)) || (mfe->hasTerr() && SAT_POSITION_TERR(satellitePosition)))
  20. +               {
  21. +                       retfe = mfe;
  22. +               }
  23. +               else if (mfe->hasSat())
  24. +               {
  25.                         satellite_map_t & satmap = mfe->getSatellites();
  26.                         sat_iterator_t sit = satmap.find(satellitePosition);
  27.                         if ((sit == satmap.end()) || !sit->second.configured)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement