mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -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 "C" {
|
||||
void can_printf(const char *fmt, ...) FMT_PRINTF(1,2);
|
||||
}
|
||||
|
||||
class AP_Periph_FW {
|
||||
public:
|
||||
AP_Periph_FW();
|
||||
@ -257,6 +261,7 @@ public:
|
||||
void show_stack_free();
|
||||
|
||||
static bool no_iface_finished_dna;
|
||||
static constexpr auto can_printf = ::can_printf;
|
||||
};
|
||||
|
||||
namespace AP
|
||||
@ -266,7 +271,4 @@ namespace AP
|
||||
|
||||
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