From 3c86d4ae74a66679dee20a1c6f9c32da56efe7f8 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 4 May 2020 23:12:00 +0200 Subject: [PATCH] zapit/frontend: back to old disqec 1.1 code Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/5f16877151efe2b27f553cea89fe922ef8621090 Author: vanhofen Date: 2020-05-04 (Mon, 04 May 2020) Origin message was: ------------------ - zapit/frontend: back to old disqec 1.1 code ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/zapit/src/frontend.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/zapit/src/frontend.cpp b/src/zapit/src/frontend.cpp index 756e70d99..b4fd9517d 100644 --- a/src/zapit/src/frontend.cpp +++ b/src/zapit/src/frontend.cpp @@ -2237,6 +2237,7 @@ void CFrontend::setDiseqc(int sat_no, const uint8_t pol, const uint32_t frequenc delay = 100; // delay for 1.0 after 1.1 command cmd.msg[2] = 0x39; /* port group = uncommited switches */ +#if 0 /* new code */ sat_no &= 0x0F; cmd.msg[3] = 0xF0 | sat_no; @@ -2244,8 +2245,9 @@ void CFrontend::setDiseqc(int sat_no, const uint8_t pol, const uint32_t frequenc cmd.msg[2] = 0x38; /* port group = commited switches */ cmd.msg[3] = 0xF0 | ((pol & 1) ? 0 : 2) | (high_band ? 1 : 0); sendDiseqcCommand(&cmd, delay); -#if 0 /* old code */ +#endif #if 1 + /* old code */ /* for 16 inputs */ cmd.msg[3] = 0xF0 | ((sat_no / 4) & 0x03); //send the command to setup second uncommited switch and @@ -2260,7 +2262,6 @@ void CFrontend::setDiseqc(int sat_no, const uint8_t pol, const uint32_t frequenc sendDiseqcCommand(&cmd, 100); /* send the command to setup first uncommited switch and wait 100 ms !!! */ cmd.msg[3] &= 0xCF; sendDiseqcCommand(&cmd, 100); /* send the command to setup second uncommited switch and wait 100 ms !!! */ -#endif #endif }