Skip to content

Commit

Permalink
Fix minor big that did not affect functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncmreynolds committed Feb 6, 2022
1 parent 2c1efad commit b3d29d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=pimoroniTrackball
version=0.1.0
version=0.1.1
author=Nick Reynolds
maintainer=Nick Reynolds <[email protected]>
sentence=Connect the Pimoroni RGBW trackball breakout to a microcontroller.
Expand Down
4 changes: 2 additions & 2 deletions src/pimoroniTrackball.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ bool pimoroniTrackball::click()
{
if(_lastState[4] == 0b10000001)
{
_lastState[4] == 0b10000000;
_lastState[4] = 0b10000000;
return(true);
}
return(false);
Expand All @@ -160,7 +160,7 @@ bool pimoroniTrackball::release()
{
if(_lastState[4] == 0b00000001)
{
_lastState[4] == 0b00000000;
_lastState[4] = 0b00000000;
return(true);
}
return(false);
Expand Down

0 comments on commit b3d29d0

Please sign in to comment.