diff --git a/library.properties b/library.properties index 5561c25..500a9da 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=pimoroniTrackball -version=0.1.0 +version=0.1.1 author=Nick Reynolds maintainer=Nick Reynolds sentence=Connect the Pimoroni RGBW trackball breakout to a microcontroller. diff --git a/src/pimoroniTrackball.cpp b/src/pimoroniTrackball.cpp index 7bfb4d3..085b734 100644 --- a/src/pimoroniTrackball.cpp +++ b/src/pimoroniTrackball.cpp @@ -151,7 +151,7 @@ bool pimoroniTrackball::click() { if(_lastState[4] == 0b10000001) { - _lastState[4] == 0b10000000; + _lastState[4] = 0b10000000; return(true); } return(false); @@ -160,7 +160,7 @@ bool pimoroniTrackball::release() { if(_lastState[4] == 0b00000001) { - _lastState[4] == 0b00000000; + _lastState[4] = 0b00000000; return(true); } return(false);