From e05928a7e80bf019eb005bff12b345fe366a71e3 Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Wed, 19 Aug 2015 12:31:27 -0300 Subject: [PATCH] AP_HAL: make SPIDeviceDriver::transaction() return success or failure --- libraries/AP_HAL/SPIDriver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL/SPIDriver.h b/libraries/AP_HAL/SPIDriver.h index 3723c36bba..b3babfd7a5 100644 --- a/libraries/AP_HAL/SPIDriver.h +++ b/libraries/AP_HAL/SPIDriver.h @@ -20,7 +20,7 @@ class AP_HAL::SPIDeviceDriver { public: virtual void init() = 0; virtual AP_HAL::Semaphore* get_semaphore() = 0; - virtual void transaction(const uint8_t *tx, uint8_t *rx, uint16_t len) = 0; + virtual bool transaction(const uint8_t *tx, uint8_t *rx, uint16_t len) = 0; virtual void cs_assert() = 0; virtual void cs_release() = 0;