ButtonFever
ButtonFever copied to clipboard
Edit code to work with 0-voltage buttons on analog array
Hello, in my analog array I have a button which brings the voltage to 0. To have it working this line in the _readButton() method of the BfButtonManager class must be changed from
if (z > this->_btnVoltageLowerBounds[_b] && z < this->_btnVoltageUpperBounds[_b]) {
to
if (z >= this->_btnVoltageLowerBounds[_b] && z < this->_btnVoltageUpperBounds[_b]) {