Go Down

Topic: Problem with code "copy for forum" containing [i] (Read 4211 times) previous topic - next topic

FlyAwayFR

Hi,

I have posted some code containing "[" "i" "]" as variable index.
The forum seems to ignore this specific sequence of 3 caracters and I wonder why...
In the folowing on line 10, my code is:
Flag"[" "i" "]" = true;
And it become:
Flag = true;

This append when doing "copy for forum" and also when doing normal copy and paste.
Any idéa?

//Interrupt Service Routine On Timer Overflow
ISR(TIMER2_OVF_vect) {
  for (int i=0; i<ChannelNbr; i++){
    //Increment Overflow Counter
    T2_OverFlow++;
    if (T2_OverFlow > 25) {
      //Fail Safe Value
      PulseLenght = FailSafeVa;
      //Set Flag
      Flag = true;
    }
  }
}
Salutations Amicales (from France)

AWOL

#1
Jul 25, 2013, 06:48 pm Last Edit: Jul 25, 2013, 06:52 pm by AWOL Reason: 1
Use code tags.
I mentioned this in your other thread.
Don't use copy for forum.

Voila
Code: [Select]
ISR(TIMER2_OVF_vect) {
 for (int i=0; i<ChannelNbr; i++){
   //Increment Overflow Counter
   T2_OverFlow[i]++;
   if (T2_OverFlow[i] > 25) {
     //Fail Safe Value
     PulseLenght[i] = FailSafeVa[i];
     //Set Flag
     Flag[i] = true;
   }
 }
}


sp. "Length"
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

FlyAwayFR

#2
Jul 25, 2013, 08:35 pm Last Edit: Jul 25, 2013, 09:55 pm by FlyAwayFR Reason: 1
Thank you for the trick!

I tried to modifie my post using normal copy and past between codes tags.
But even when using code tags as you propose the quoted i [ i ] does not go through...
Quoted j [j] does but quoted [ i ] does not!  (quote/space/i/space/quote in purpose to make it visible)
Look at this:

Quoted j [j] between code tags:
Quote

[j]


Quoted i [ i ] between code tags:
Quote




Grrrrrr....(Is my bloody Azerty key pad driving me crazy?)

Thanks for help.

Length, length, length (I get it now).
Salutations Amicales (from France)

AWOL

Code tags look like this [font=Verdana][[/font]code][font=Verdana][[/font]/code] and do this
Code: [Select]
You have used quote tags, which look like [font=Verdana][[/font]quote][font=Verdana][[/font]/quote] and do this
Quote
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

FlyAwayFR

Hi,

Not a good feeling but I have to admit "the crazy frog" is also stupid...
I did not get right the diff between quote tags and code tags!
Now I think my post is clean.
Thank again for the bad feeling you gave me.

Cheers.
Salutations Amicales (from France)

Go Up