mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 10:50:19 +08:00
SPI: make _bus protected
this allows runtime use of internal/external bus to determine if DRDY should be used on the L3GD20
This commit is contained in:
committed by
Lorenz Meier
parent
644d4bb3dc
commit
fea4845ed9
@@ -124,11 +124,13 @@ protected:
|
||||
LockMode locking_mode; /**< selected locking mode */
|
||||
|
||||
private:
|
||||
int _bus;
|
||||
enum spi_dev_e _device;
|
||||
enum spi_mode_e _mode;
|
||||
uint32_t _frequency;
|
||||
struct spi_dev_s *_dev;
|
||||
|
||||
protected:
|
||||
int _bus;
|
||||
};
|
||||
|
||||
} // namespace device
|
||||
|
||||
Reference in New Issue
Block a user