mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
AP_Periph: allow can_printf as periph member method as well
This commit is contained in:
parent
d82a306cc2
commit
7f5dc33e7e
@ -53,6 +53,10 @@ void stm32_watchdog_pat();
|
|||||||
*/
|
*/
|
||||||
extern const struct app_descriptor app_descriptor;
|
extern const struct app_descriptor app_descriptor;
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
void can_printf(const char *fmt, ...) FMT_PRINTF(1,2);
|
||||||
|
}
|
||||||
|
|
||||||
class AP_Periph_FW {
|
class AP_Periph_FW {
|
||||||
public:
|
public:
|
||||||
AP_Periph_FW();
|
AP_Periph_FW();
|
||||||
@ -257,6 +261,7 @@ public:
|
|||||||
void show_stack_free();
|
void show_stack_free();
|
||||||
|
|
||||||
static bool no_iface_finished_dna;
|
static bool no_iface_finished_dna;
|
||||||
|
static constexpr auto can_printf = ::can_printf;
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace AP
|
namespace AP
|
||||||
@ -266,7 +271,4 @@ namespace AP
|
|||||||
|
|
||||||
extern AP_Periph_FW periph;
|
extern AP_Periph_FW periph;
|
||||||
|
|
||||||
extern "C" {
|
|
||||||
void can_printf(const char *fmt, ...) FMT_PRINTF(1,2);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user