mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 05:11:24 +01:00
Comment out unused variables
This commit is contained in:
parent
6eff836473
commit
e01893bcf1
@ -66,13 +66,13 @@ private:
|
|||||||
_i2cAddress = i2cAddress;
|
_i2cAddress = i2cAddress;
|
||||||
_numDigitalPins = numDigitalPins;
|
_numDigitalPins = numDigitalPins;
|
||||||
_numAnaloguePins = numAnaloguePins;
|
_numAnaloguePins = numAnaloguePins;
|
||||||
int _dPinArrayLen = (_numDigitalPins + 7) / 8;
|
// int _dPinArrayLen = (_numDigitalPins + 7) / 8;
|
||||||
addDevice(this);
|
addDevice(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _begin() {
|
void _begin() {
|
||||||
// Initialise EX-IOExander device
|
// Initialise EX-IOExander device
|
||||||
uint8_t _check = I2CManager.checkAddress(_i2cAddress);
|
// uint8_t _check = I2CManager.checkAddress(_i2cAddress);
|
||||||
if (I2CManager.exists(_i2cAddress)) {
|
if (I2CManager.exists(_i2cAddress)) {
|
||||||
_digitalOutBuffer[0] = EXIOINIT;
|
_digitalOutBuffer[0] = EXIOINIT;
|
||||||
_digitalOutBuffer[1] = _numDigitalPins;
|
_digitalOutBuffer[1] = _numDigitalPins;
|
||||||
@ -105,7 +105,7 @@ private:
|
|||||||
if (paramCount != 1) return false;
|
if (paramCount != 1) return false;
|
||||||
bool pullup = params[0];
|
bool pullup = params[0];
|
||||||
int pin = vpin - _firstVpin;
|
int pin = vpin - _firstVpin;
|
||||||
uint8_t mask = 1 << ((pin-_firstVpin) % 8);
|
// uint8_t mask = 1 << ((pin-_firstVpin) % 8);
|
||||||
_digitalOutBuffer[0] = EXIODPUP;
|
_digitalOutBuffer[0] = EXIODPUP;
|
||||||
_digitalOutBuffer[1] = pin;
|
_digitalOutBuffer[1] = pin;
|
||||||
_digitalOutBuffer[2] = pullup;
|
_digitalOutBuffer[2] = pullup;
|
||||||
|
Loading…
Reference in New Issue
Block a user