Skip to content

Commit 15a7ebe

Browse files
author
Federico Fissore
committed
closes arduino#1163: wrong variable naming
1 parent c2c1043 commit 15a7ebe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hardware/arduino/sam/libraries/USBHost/examples/MouseController/MouseController.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ void mousePressed() {
6363
// This function intercepts mouse button release
6464
void mouseReleased() {
6565
Serial.print("Released: ");
66-
if (!mouse.getButton(LEFT_BUTTON) && left==true) {
66+
if (!mouse.getButton(LEFT_BUTTON) && leftButton == true) {
6767
Serial.print("L");
6868
leftButton = false;
6969
}
70-
if (!mouse.getButton(MIDDLE_BUTTON) && middle==true) {
70+
if (!mouse.getButton(MIDDLE_BUTTON) && middleButton == true) {
7171
Serial.print("M");
7272
middleButton = false;
7373
}
74-
if (!mouse.getButton(RIGHT_BUTTON) && right==true) {
74+
if (!mouse.getButton(RIGHT_BUTTON) && rightButton == true) {
7575
Serial.print("R");
7676
rightButton = false;
7777
}

0 commit comments

Comments
 (0)