Fix warnings with avr-gcc 6.2 (#4471)

This commit is contained in:
Arne Schwabe
2017-02-17 17:00:39 +01:00
committed by Bertrand Songis
parent 357ffd0b92
commit 6106d1b228
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -553,6 +553,7 @@ static inline void MAVLINK_msg_param_set(uint8_t idx) {
}
#endif
__attribute__((unused))
static inline void MAVLINK_msg_request_data_stream_pack_send(uint8_t req_stream_id, uint16_t req_message_rate,
uint8_t start_stop) {
mavlink_channel_t chan = MAVLINK_COMM_0;
@@ -560,12 +561,15 @@ static inline void MAVLINK_msg_request_data_stream_pack_send(uint8_t req_stream_
start_stop);
}
__attribute__((unused))
//! \brief old mode switch funtion
static inline void MAVLINK_msg_set_mode_send(uint8_t mode) {
mavlink_channel_t chan = MAVLINK_COMM_0;
mavlink_msg_set_mode_send(chan, mavlink_system.sysid, mode, 0);
}
/*! \brief Telemetry monitoring, calls \link MAVLINK10mspoll.
* \todo Reimplemnt \link MAVLINK10mspoll
*
+2 -2
View File
@@ -210,13 +210,13 @@ extern Telemetry_Data_t telemetry_data;
#if 0
extern inline uint8_t MAVLINK_CtrlMode2Action(uint8_t mode) {
uint8_t action;
return action;
}
#if 0
extern inline uint8_t MAVLINK_Action2CtrlMode(uint8_t action) {
uint8_t mode = ERROR_NUM_MODES;
switch (action) {