mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-22 23:56:13 +01:00
Update I2CManager.h
Make getMuxCount() publicly visible.
This commit is contained in:
parent
ddfc67d2e3
commit
cdf3927aad
|
@ -506,10 +506,12 @@ private:
|
|||
|
||||
#if defined(I2C_EXTENDED_ADDRESS)
|
||||
// Count of I2C multiplexers found when initialising. If there is only one
|
||||
// MUX then the subbus does not de-selecting after use; however, if there
|
||||
// MUX then the subbus does not need de-selecting after use; however, if there
|
||||
// are two or more, then the subbus must be deselected to avoid multiple
|
||||
// sub-bus legs on different multiplexers being accessible simultaneously.
|
||||
private:
|
||||
uint8_t _muxCount = 0;
|
||||
public:
|
||||
uint8_t getMuxCount() { return _muxCount; }
|
||||
#endif
|
||||
|
||||
|
@ -522,6 +524,7 @@ private:
|
|||
// Within the queue, each request's nextRequest field points to the
|
||||
// next request, or NULL.
|
||||
// Mark volatile as they are updated by IRC and read/written elsewhere.
|
||||
private:
|
||||
I2CRB * volatile queueHead = NULL;
|
||||
I2CRB * volatile queueTail = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user