AP_CANManager: fixed MAVCAN fwding flag

this caused corruption due to multiple frames
This commit is contained in:
Andrew Tridgell 2023-04-10 11:31:59 +10:00
parent 526ebcf8c8
commit d59e881301

View File

@ -521,7 +521,7 @@ void AP_CANManager::process_frame_buffer(void)
}
const int16_t retcode = hal.can[frame.bus]->send(frame.frame,
AP_HAL::native_micros64() + timeout_us,
frame.frame.isCanFDFrame()?AP_HAL::CANIface::IsMAVCAN:0);
AP_HAL::CANIface::IsMAVCAN);
if (retcode == 0) {
// no space in the CAN output slots, try again later
break;