AP_UAVCAN: compile fix for debug/assertions

This commit is contained in:
Andy Piper 2021-01-02 17:23:07 +00:00 committed by Andrew Tridgell
parent 176c648156
commit 40090dcce9
1 changed files with 3 additions and 0 deletions

View File

@ -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)