BoardConfig_CAN: reset slcan port state at restart
This commit is contained in:
parent
b5fbdc9888
commit
7912952afe
@ -126,6 +126,7 @@ void AP_BoardConfig_CAN::init()
|
|||||||
{
|
{
|
||||||
// Create all drivers that we need
|
// Create all drivers that we need
|
||||||
bool initret = true;
|
bool initret = true;
|
||||||
|
reset_slcan_serial();
|
||||||
for (uint8_t i = 0; i < MAX_NUMBER_OF_CAN_INTERFACES; i++) {
|
for (uint8_t i = 0; i < MAX_NUMBER_OF_CAN_INTERFACES; i++) {
|
||||||
// Check the driver number assigned to this physical interface
|
// Check the driver number assigned to this physical interface
|
||||||
uint8_t drv_num = _interfaces[i]._driver_number_cache = _interfaces[i]._driver_number;
|
uint8_t drv_num = _interfaces[i]._driver_number_cache = _interfaces[i]._driver_number;
|
||||||
|
Loading…
Reference in New Issue
Block a user