AP_HAL_Empty: SPI: adapt to the new signature of transaction()

A default behaviour was added here.
This commit is contained in:
Gustavo Jose de Sousa 2015-08-19 12:42:30 -03:00 committed by Andrew Tridgell
parent 93f5abb274
commit 4e27d19107
2 changed files with 5 additions and 3 deletions

View File

@ -14,8 +14,10 @@ AP_HAL::Semaphore* EmptySPIDeviceDriver::get_semaphore()
return &_semaphore;
}
void EmptySPIDeviceDriver::transaction(const uint8_t *tx, uint8_t *rx, uint16_t len)
{}
bool EmptySPIDeviceDriver::transaction(const uint8_t *tx, uint8_t *rx, uint16_t len)
{
return true;
}
void EmptySPIDeviceDriver::cs_assert()

View File

@ -10,7 +10,7 @@ public:
EmptySPIDeviceDriver();
void init();
AP_HAL::Semaphore* get_semaphore();
void transaction(const uint8_t *tx, uint8_t *rx, uint16_t len);
bool transaction(const uint8_t *tx, uint8_t *rx, uint16_t len);
void cs_assert();
void cs_release();