Commit c3a0996b authored by Flavio Fernandes's avatar Flavio Fernandes

Fix warning: C++11 requires a space between literal and identifier

This change fixes the following compiler warning I get when building
on Arduino IDE version 1.6.7

"/var/folders/sv/27zk61c9449f9wycpfhq9dmr0000gn/T/build68a338274e8c0af55d2a1e6113ec3df2.tmp/libraries/RF24/RF24.cpp.o"
/Users/flaviof/Documents/Arduino/libraries/RF24/RF24.cpp:559:17: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
   printf_P(PSTR("Data Rate\t = "PRIPSTR"\r\n"),pgm_read_word(&rf24_datarate_e_str_P[getDataRate()]));
                 ^
/Users/flaviof/Documents/Arduino/libraries/RF24/RF24.cpp:560:17: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
   printf_P(PSTR("Model\t\t = "PRIPSTR"\r\n"),pgm_read_word(&rf24_model_e_str_P[isPVariant()]));
                 ^
/Users/flaviof/Documents/Arduino/libraries/RF24/RF24.cpp:561:17: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
   printf_P(PSTR("CRC Length\t = "PRIPSTR"\r\n"),pgm_read_word(&rf24_crclength_e_str_P[getCRCLength()]));
                 ^
/Users/flaviof/Documents/Arduino/libraries/RF24/RF24.cpp:562:17: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
   printf_P(PSTR("PA Power\t = "PRIPSTR"\r\n"),  pgm_read_word(&rf24_pa_dbm_e_str_P[getPALevel()]));
                 ^
parent 58f6d8db
......@@ -556,10 +556,10 @@ void RF24::printDetails(void)
print_byte_register(PSTR("CONFIG\t"),CONFIG);
print_byte_register(PSTR("DYNPD/FEATURE"),DYNPD,2);
printf_P(PSTR("Data Rate\t = "PRIPSTR"\r\n"),pgm_read_word(&rf24_datarate_e_str_P[getDataRate()]));
printf_P(PSTR("Model\t\t = "PRIPSTR"\r\n"),pgm_read_word(&rf24_model_e_str_P[isPVariant()]));
printf_P(PSTR("CRC Length\t = "PRIPSTR"\r\n"),pgm_read_word(&rf24_crclength_e_str_P[getCRCLength()]));
printf_P(PSTR("PA Power\t = "PRIPSTR"\r\n"), pgm_read_word(&rf24_pa_dbm_e_str_P[getPALevel()]));
printf_P(PSTR("Data Rate\t = " PRIPSTR "\r\n"),pgm_read_word(&rf24_datarate_e_str_P[getDataRate()]));
printf_P(PSTR("Model\t\t = " PRIPSTR "\r\n"),pgm_read_word(&rf24_model_e_str_P[isPVariant()]));
printf_P(PSTR("CRC Length\t = " PRIPSTR "\r\n"),pgm_read_word(&rf24_crclength_e_str_P[getCRCLength()]));
printf_P(PSTR("PA Power\t = " PRIPSTR "\r\n"), pgm_read_word(&rf24_pa_dbm_e_str_P[getPALevel()]));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment