I have a very strange error. Whit this code, my Arduino Mega 2560 (I test this problem with an UNO whit the same error).
If I use a noInterrupt it work.
// noInterrupts(); bitWrite(_Booleanas[SetPointID / 8], SetPointID % 8, Valor); // interrupts();
I don't think than the interrups been the problems. And, it is a very strange error, because, sometimes work and sometimes not work.
What I start to prove?