[fix] fix compile warning with c++ (nps)

This commit is contained in:
Gautier Hattenberger
2013-10-23 18:37:37 +02:00
parent bc3848104e
commit 3717ead582
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -35,7 +35,7 @@
* @param _cb callback function, called according to telemetry mode and specified period
* @return TRUE if message registered with success, FALSE otherwise
*/
bool_t register_periodic_telemetry(struct pprz_telemetry * _pt, char * _msg, telemetry_cb _cb) {
bool_t register_periodic_telemetry(struct pprz_telemetry * _pt, const char * _msg, telemetry_cb _cb) {
// look for message name
uint8_t i;
for (i = 0; i < _pt->nb; i++) {
@@ -58,7 +58,7 @@ struct pprz_telemetry {
* @param _cb callback function, called according to telemetry mode and specified period
* @return TRUE if message registered with success, FALSE otherwise
*/
extern bool_t register_periodic_telemetry(struct pprz_telemetry * _pt, char * _msg, telemetry_cb _cb);
extern bool_t register_periodic_telemetry(struct pprz_telemetry * _pt, const char * _msg, telemetry_cb _cb);
#if USE_PERIODIC_TELEMETRY_REPORT
/** Send an error report when trying to send message that as not been register