From b3d29d00013167c1278233454c0d17d6c398144c Mon Sep 17 00:00:00 2001 From: Nick Reynolds Date: Sun, 6 Feb 2022 15:36:55 +0000 Subject: [PATCH] Fix minor big that did not affect functionality. --- library.properties | 2 +- src/pimoroniTrackball.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);