AP_HAL: make SPIDeviceDriver::transaction() return success or failure

This commit is contained in:
Gustavo Jose de Sousa 2015-08-19 12:31:27 -03:00 committed by Andrew Tridgell
parent a6bdee076e
commit e05928a7e8
1 changed files with 1 additions and 1 deletions

View File

@ -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;