ButtonFever icon indicating copy to clipboard operation
ButtonFever copied to clipboard

Edit code to work with 0-voltage buttons on analog array

Open MicDG opened this issue 2 years ago • 0 comments

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]) {

MicDG avatar May 24 '22 09:05 MicDG