From 4a8eda058997548fd8979848f450b7e831274fa9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 27 Apr 2023 15:26:18 +1000 Subject: [PATCH] AP_HAL: default CAN_Px_DRIVER to 0 on SITL having this default to 1 slows down SITL startup for a lot of people due to the CAN wait for sensor delays. It is easy to enable it when CAN is needed in SITL --- libraries/AP_HAL/board/sitl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL/board/sitl.h b/libraries/AP_HAL/board/sitl.h index f3f378d32a..7bea9ad10e 100644 --- a/libraries/AP_HAL/board/sitl.h +++ b/libraries/AP_HAL/board/sitl.h @@ -77,5 +77,5 @@ #endif #ifndef HAL_CAN_DRIVER_DEFAULT -#define HAL_CAN_DRIVER_DEFAULT 1 +#define HAL_CAN_DRIVER_DEFAULT 0 #endif