From 8c9ef538f7daf5c667742efe815a9364a29a3eac Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Mon, 16 Dec 2024 17:23:18 -0600 Subject: [PATCH] Tools: drop CAN interface alternate mode support Only "NormalMode" was ever used; the others had rotted or were never implemented. --- Tools/AP_Bootloader/can.cpp | 2 +- Tools/AP_Periph/can.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tools/AP_Bootloader/can.cpp b/Tools/AP_Bootloader/can.cpp index de1b372276..6a1eb72a60 100644 --- a/Tools/AP_Bootloader/can.cpp +++ b/Tools/AP_Bootloader/can.cpp @@ -818,7 +818,7 @@ void can_start() canStart(&CAND1, &cancfg); #else for (uint8_t i=0; iinit(g.can_baudrate[i], g.can_fdbaudrate[i]*1000000U, AP_HAL::CANIface::NormalMode); + can_iface_periph[i]->init(g.can_baudrate[i], g.can_fdbaudrate[i]*1000000U); #else - can_iface_periph[i]->init(g.can_baudrate[i], AP_HAL::CANIface::NormalMode); + can_iface_periph[i]->init(g.can_baudrate[i]); #endif } }