mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_Empty: SPI: adapt to the new signature of transaction()
A default behaviour was added here.
This commit is contained in:
parent
93f5abb274
commit
4e27d19107
|
@ -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()
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue