mirror of https://github.com/ArduPilot/ardupilot
AP_UAVCAN: compile fix for debug/assertions
This commit is contained in:
parent
176c648156
commit
40090dcce9
|
@ -182,6 +182,8 @@ bool AP_UAVCAN::add_interface(AP_HAL::CANIface* can_iface) {
|
|||
return true;
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic error "-Wframe-larger-than=1400"
|
||||
void AP_UAVCAN::init(uint8_t driver_index, bool enable_filters)
|
||||
{
|
||||
_driver_index = driver_index;
|
||||
|
@ -338,6 +340,7 @@ void AP_UAVCAN::init(uint8_t driver_index, bool enable_filters)
|
|||
_initialized = true;
|
||||
debug_uavcan(AP_CANManager::LOG_INFO, "UAVCAN: init done\n\r");
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
// send ESC telemetry messages over MAVLink
|
||||
void AP_UAVCAN::send_esc_telemetry_mavlink(uint8_t mav_chan)
|
||||
|
|
Loading…
Reference in New Issue