ninjablocks / 433Utils

433Kit is a collection of code and documentation designed to assist you in the connection and usage of RF 433MHz transmit and receive modules to/with your Arduino and Rapberry Pi.
ninjablocks.com
MIT License
895 stars 335 forks source link

WARNING : Deprecated conversion from string constant to char* #1

Closed maditnerd closed 11 years ago

maditnerd commented 11 years ago

When you tried to compile the rcswitch library, it will throw warning message.

This is how to fix it:

https://github.com/ninjablocks/433Utils/blob/master/RPi_utils/RCSwitch.cpp#L194 const char* code[5] = { "FFFF", "0FFF", "F0FF", "FF0F", "FFF0" };

https://github.com/ninjablocks/433Utils/blob/master/RPi_utils/RCSwitch.cpp#L229 const char* code[6] = { "FFFFF", "0FFFF", "F0FFF", "FF0FF", "FFF0F", "FFFF0" }; Source:http://stackoverflow.com/questions/59670/how-to-get-rid-of-deprecated-conversion-from-string-constant-to-char-warnin

justy commented 11 years ago

Merci!