mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Classes which use I2C or SPI now do so via composition rather than inheritance (#72)
This commit is contained in:
committed by
Peter Johnson
parent
9f2f301fa4
commit
51ff9e9f69
@@ -66,7 +66,7 @@ public class ADXL345_I2C extends SensorBase implements Accelerometer, LiveWindow
|
||||
public double ZAxis;
|
||||
}
|
||||
|
||||
private I2C m_i2c;
|
||||
protected I2C m_i2c;
|
||||
|
||||
/**
|
||||
* Constructs the ADXL345 Accelerometer with I2C address 0x1D.
|
||||
|
||||
@@ -69,7 +69,7 @@ public class ADXL345_SPI extends SensorBase implements Accelerometer, LiveWindow
|
||||
public double ZAxis;
|
||||
}
|
||||
|
||||
private SPI m_spi;
|
||||
protected SPI m_spi;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
|
||||
Reference in New Issue
Block a user