>
> One more thing - how do I convert a %d variable to a %s string first?
>
> My 'txt' variable is currently an integer.
Strike that - works a treat:
void cRedRemote::Tune(int channel)
{
char buf[10];
sprintf(buf,"%d",channel);
log(1,"Setting digibox to channel %d",channel);
> El Viernes, 13 de Abril de 2007, Simon Baxter escribió:
>> My question is this. I need to modify the channel sent, so that double
>> (or triple) channel numbers are sent as '6 3' or '1 1 7' rather than
>> '63'
>> or '117'. i.e. put spaces between the letters.
> You can try something like that:
El Viernes, 13 de Abril de 2007, Simon Baxter escribió:
> Hi.
>
> I'm modifying a non-published pvrinput variation which sends IR commands
> to a set box box - specifically, the channel number stored in
> channels.conf.
>
> 12345J2:6:C12:C:0:301:300:305:A1:62006:0:1009:0
> FOODJ2:63:C12:C:0:301:300
Hi.
I'm modifying a non-published pvrinput variation which sends IR commands
to a set box box - specifically, the channel number stored in
channels.conf.
12345J2:6:C12:C:0:301:300:305:A1:62006:0:1009:0
FOODJ2:63:C12:C:0:301:300:305:A1:62008:0:1019:0
^^ - channel number to send to external