Code with strange behavior

Started by Fernando Garcia, February 28, 2017, 09:22:35 PM

Fernando Garcia

Hi!

I did a code to control six LED channels using a RFM12B the communication is working but there a strange behavior.

When the slave module receives in "theData.channel_red" a value different of 0 or 255 the communication stops.

Here the result on serial monitor, see "RED" value.





The full code slave module that I'm using is here: https://github.com/FernandoGarcia/Ferduino_with_webcontrol_beta/blob/master/RF%20control/Code_for_Slave_Module/Code_for_Slave_Module.ino#L89

The code for master module is here: https://github.com/FernandoGarcia/Ferduino_with_webcontrol_beta/blob/master/RF%20control/Code_for_Ferduino_or_Arduino_Mega/Code_for_Ferduino_or_Arduino_Mega.ino#L77

Can someone take a look in this codes and help to solve this mystery?

Thanks in advance.

Best regards.