From patchwork Sat Sep 10 02:05:55 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: M Racine X-Patchwork-Id: 12014 Received: from qproxy.gmail.com ([72.14.204.205]) by www.linuxtv.org with esmtp (Exim 4.34) id 1EDulE-0004Wm-Ij for vdr@linuxtv.org; Sat, 10 Sep 2005 04:06:32 +0200 Received: by qproxy.gmail.com with SMTP id e12so70124qba for ; Fri, 09 Sep 2005 19:05:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=CDbbrQAAtJ07eXQqCOr1kJMPpvfaBU+3mOSjdhnPcxWoS5fBuobM4kiOuivLioRYaNw3GmglsrKHN9CarcWJSQVKu8zmZCz3DTitPER7piamwJgWIIO2O78sz7LeJhjeXVso0HUnmi0VJTXZBseVT2Eh+m58U8ZBp80lxTVOGjM= Received: by 10.64.204.12 with SMTP id b12mr4972qbg; Fri, 09 Sep 2005 19:05:55 -0700 (PDT) Received: by 10.64.251.3 with HTTP; Fri, 9 Sep 2005 19:05:55 -0700 (PDT) Message-ID: <76b958a105090919053f2051f@mail.gmail.com> Date: Fri, 9 Sep 2005 22:05:55 -0400 From: M Racine To: Klaus Schmidinger's VDR Mime-Version: 1.0 Subject: [vdr] Rotor Plugin fix for circular polarity X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: micheljr@gmail.com, Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2005 02:06:33 -0000 Status: O X-Status: X-Keywords: X-UID: 4850 Great plugin! But it was not reading all my rotor positions in my diseqc.conf. I use a circular LNB, the polarities are 'L' or 'R' instead of 'H' or 'V' So a little patch was needed for the plugin to read both Linear and Circular sources found in diseqc.conf. --- ./rotor.c.orig 2005-09-09 21:49:52.000000000 -0400 +++ ./rotor.c 2005-09-09 21:51:06.000000000 -0400 @@ -101,6 +101,19 @@ } } } + if (diseqc=Diseqcs.Get(source->Code(),12000,'l')) + { + char *CurrentAction = NULL; + while ((diseqc->Execute(&CurrentAction))!= cDiseqc::daNone) + { + codes = diseqc->Codes(n); + if (n==4 && (*codes==0xe0 || *codes==0xe1) && (*(codes+1)==0x30 || *(codes+1)==0x31) && *(codes+2)==0x6b) + { + List.Add(cSource::ToString(source->Code()),source->Description(),*(codes+3),source->Code()); + break; + } + } + } if (!List.GetfromSource(source->Code()) && ((source->Code() & 0xC000) == 0x8000)) List.Add(cSource::ToString(source->Code()),source->Description(),0,source->Code()); }