From 68ec4ac76c4161c10da2ecd96e649fe258b809cc Mon Sep 17 00:00:00 2001 From: Frankenstone Date: Fri, 1 Dec 2017 19:13:35 +0100 Subject: [PATCH] fix frontend Uni2 / JESS (thx DboxOldie) Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/f3283ed362f1ee3df44540883dc17d6628c655d1 Author: Frankenstone Date: 2017-12-01 (Fri, 01 Dec 2017) --- src/zapit/src/frontend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zapit/src/frontend.cpp b/src/zapit/src/frontend.cpp index a5093e668..73164bfb6 100644 --- a/src/zapit/src/frontend.cpp +++ b/src/zapit/src/frontend.cpp @@ -1400,7 +1400,7 @@ void CFrontend::secSetTone(const fe_sec_tone_mode_t toneMode, const uint32_t ms) if (currentToneMode == toneMode) return; - if (config.diseqcType == DISEQC_UNICABLE) { + if (config.diseqcType == DISEQC_UNICABLE || config.diseqcType == DISEQC_UNICABLE2) { /* this is too ugly for words. the "currentToneMode" is the only place where the global "highband" state is saved. So we need to fake it for unicable and still set the tone on... */ @@ -1429,7 +1429,7 @@ void CFrontend::secSetVoltage(const fe_sec_voltage_t voltage, const uint32_t ms) return; if (zapit_debug) printf("[fe%d] voltage %s\n", fenumber, voltage == SEC_VOLTAGE_OFF ? "OFF" : voltage == SEC_VOLTAGE_13 ? "13" : "18"); - if (config.diseqcType == DISEQC_UNICABLE && voltage != SEC_VOLTAGE_OFF) { + if (config.diseqcType == DISEQC_UNICABLE || config.diseqcType == DISEQC_UNICABLE2) { /* see my comment in secSetTone... */ currentVoltage = voltage; /* need to know polarization for unicable */ fop(ioctl, FE_SET_VOLTAGE, unicable_lowvolt); /* voltage must not be 18V */