From 14fad6e9703de4ab451a1ef9ae182a5ede6bff96 Mon Sep 17 00:00:00 2001 From: Lars Hanisch Date: Thu, 1 Sep 2011 13:03:27 +0200 Subject: adjust parsing diseqc code-sequence in unicable patch --- patches/vdr-1.7.20-dynamite+unicable+lnbsharing.patch | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/patches/vdr-1.7.20-dynamite+unicable+lnbsharing.patch b/patches/vdr-1.7.20-dynamite+unicable+lnbsharing.patch index 1fe9780..d146c27 100644 --- a/patches/vdr-1.7.20-dynamite+unicable+lnbsharing.patch +++ b/patches/vdr-1.7.20-dynamite+unicable+lnbsharing.patch @@ -798,9 +798,11 @@ index d446299..b1fa971 100644 - codes[NumCodes++] = uchar(n); - numCodes = NumCodes; - } -+ if (!parsing) ++ // unicable: don't read codes again, since there are some "presets" ++ if ((unicable < 0) || (parsing && (unicable >= 0))) { + codes[NumCodes] = uchar(n); -+ ++NumCodes; ++ ++NumCodes; ++ } t = skipspace(p); } else { @@ -808,7 +810,7 @@ index d446299..b1fa971 100644 return NULL; } } -+ if (parsing) ++ if (parsing || (unicable < 0)) + numCodes = NumCodes; return e + 1; } -- cgit v1.2.3