Skip to content

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

Description

@MicDG

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions