Rotor Plugin fix for circular polarity
Commit Message
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.
Comments
M Racine wrote:
> 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.
Thank you very much for your patch. I will include it
in the next version of the plugin.
Thomas
@@ -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());
}