From 52c8d3ed9fecc95a4f997291a2dcea73aeff004b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 22 May 2018 07:51:05 +1000 Subject: [PATCH] HAL_ChibiOS: fixed SPI select error changes by sdcard PR --- libraries/AP_HAL_ChibiOS/SPIDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/SPIDevice.cpp b/libraries/AP_HAL_ChibiOS/SPIDevice.cpp index cae2e37afa..864a1026c2 100644 --- a/libraries/AP_HAL_ChibiOS/SPIDevice.cpp +++ b/libraries/AP_HAL_ChibiOS/SPIDevice.cpp @@ -238,7 +238,7 @@ bool SPIDevice::acquire_bus(bool set, bool skip_cs) return true; } if (!set && !cs_forced) { - return true; + return false; } if (!set && cs_forced) { if(!skip_cs) {