1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 21:01:25 +01:00

Comment out unused variables

This commit is contained in:
peteGSX 2023-01-09 20:03:18 +10:00
parent 6eff836473
commit e01893bcf1

View File

@ -66,13 +66,13 @@ private:
_i2cAddress = i2cAddress;
_numDigitalPins = numDigitalPins;
_numAnaloguePins = numAnaloguePins;
int _dPinArrayLen = (_numDigitalPins + 7) / 8;
// int _dPinArrayLen = (_numDigitalPins + 7) / 8;
addDevice(this);
}
void _begin() {
// Initialise EX-IOExander device
uint8_t _check = I2CManager.checkAddress(_i2cAddress);
// uint8_t _check = I2CManager.checkAddress(_i2cAddress);
if (I2CManager.exists(_i2cAddress)) {
_digitalOutBuffer[0] = EXIOINIT;
_digitalOutBuffer[1] = _numDigitalPins;
@ -105,7 +105,7 @@ private:
if (paramCount != 1) return false;
bool pullup = params[0];
int pin = vpin - _firstVpin;
uint8_t mask = 1 << ((pin-_firstVpin) % 8);
// uint8_t mask = 1 << ((pin-_firstVpin) % 8);
_digitalOutBuffer[0] = EXIODPUP;
_digitalOutBuffer[1] = pin;
_digitalOutBuffer[2] = pullup;