mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 22:24:47 +08:00
mavlink: remove unused get_uart_fd(unsigned index) method
This commit is contained in:
committed by
Kabir Mohammed
parent
993fa5bd37
commit
e003b1ce79
@@ -487,18 +487,6 @@ Mavlink::forward_message(const mavlink_message_t *msg, Mavlink *self)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
Mavlink::get_uart_fd(unsigned index)
|
|
||||||
{
|
|
||||||
Mavlink *inst = get_instance(index);
|
|
||||||
|
|
||||||
if (inst) {
|
|
||||||
return inst->get_uart_fd();
|
|
||||||
}
|
|
||||||
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
Mavlink::mavlink_open_uart(const int baud, const char *uart_name, const bool force_flow_control)
|
Mavlink::mavlink_open_uart(const int baud, const char *uart_name, const bool force_flow_control)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -164,8 +164,6 @@ public:
|
|||||||
|
|
||||||
static void forward_message(const mavlink_message_t *msg, Mavlink *self);
|
static void forward_message(const mavlink_message_t *msg, Mavlink *self);
|
||||||
|
|
||||||
static int get_uart_fd(unsigned index);
|
|
||||||
|
|
||||||
int get_uart_fd() const { return _uart_fd; }
|
int get_uart_fd() const { return _uart_fd; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user