AP_ToshibaCAN: send aborts on error

avoids flooding the bus when trying to send to ESCs that are not connected
This commit is contained in:
Randy Mackay 2019-02-08 17:15:37 +09:00
parent d8959b3400
commit 73850f7a06
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ bool AP_ToshibaCAN::write_frame(uavcan::CanFrame &out_frame, uavcan::MonotonicTi
} while (!inout_mask.write);
// send frame and return success
return (_can_driver->getIface(CAN_IFACE_INDEX)->send(out_frame, timeout, 0) == 1);
return (_can_driver->getIface(CAN_IFACE_INDEX)->send(out_frame, timeout, uavcan::CanIOFlagAbortOnError) == 1);
}
// called from SRV_Channels