BoardConfig_CAN: reset slcan port state at restart

This commit is contained in:
Siddharth Purohit 2019-01-17 11:17:40 +08:00 committed by Andrew Tridgell
parent b5fbdc9888
commit 7912952afe
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ void AP_BoardConfig_CAN::init()
{
// Create all drivers that we need
bool initret = true;
reset_slcan_serial();
for (uint8_t i = 0; i < MAX_NUMBER_OF_CAN_INTERFACES; i++) {
// Check the driver number assigned to this physical interface
uint8_t drv_num = _interfaces[i]._driver_number_cache = _interfaces[i]._driver_number;