Fix warnings with avr-gcc 6.2 (#4471)
This commit is contained in:
committed by
Bertrand Songis
parent
357ffd0b92
commit
6106d1b228
@@ -553,6 +553,7 @@ static inline void MAVLINK_msg_param_set(uint8_t idx) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
__attribute__((unused))
|
||||||
static inline void MAVLINK_msg_request_data_stream_pack_send(uint8_t req_stream_id, uint16_t req_message_rate,
|
static inline void MAVLINK_msg_request_data_stream_pack_send(uint8_t req_stream_id, uint16_t req_message_rate,
|
||||||
uint8_t start_stop) {
|
uint8_t start_stop) {
|
||||||
mavlink_channel_t chan = MAVLINK_COMM_0;
|
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);
|
start_stop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
__attribute__((unused))
|
||||||
//! \brief old mode switch funtion
|
//! \brief old mode switch funtion
|
||||||
static inline void MAVLINK_msg_set_mode_send(uint8_t mode) {
|
static inline void MAVLINK_msg_set_mode_send(uint8_t mode) {
|
||||||
mavlink_channel_t chan = MAVLINK_COMM_0;
|
mavlink_channel_t chan = MAVLINK_COMM_0;
|
||||||
mavlink_msg_set_mode_send(chan, mavlink_system.sysid, mode, 0);
|
mavlink_msg_set_mode_send(chan, mavlink_system.sysid, mode, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*! \brief Telemetry monitoring, calls \link MAVLINK10mspoll.
|
/*! \brief Telemetry monitoring, calls \link MAVLINK10mspoll.
|
||||||
* \todo Reimplemnt \link MAVLINK10mspoll
|
* \todo Reimplemnt \link MAVLINK10mspoll
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -210,13 +210,13 @@ extern Telemetry_Data_t telemetry_data;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if 0
|
||||||
extern inline uint8_t MAVLINK_CtrlMode2Action(uint8_t mode) {
|
extern inline uint8_t MAVLINK_CtrlMode2Action(uint8_t mode) {
|
||||||
uint8_t action;
|
uint8_t action;
|
||||||
|
|
||||||
return action;
|
return action;
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
extern inline uint8_t MAVLINK_Action2CtrlMode(uint8_t action) {
|
extern inline uint8_t MAVLINK_Action2CtrlMode(uint8_t action) {
|
||||||
uint8_t mode = ERROR_NUM_MODES;
|
uint8_t mode = ERROR_NUM_MODES;
|
||||||
switch (action) {
|
switch (action) {
|
||||||
|
|||||||
Reference in New Issue
Block a user