Skip to content

Commit 07925f2

Browse files
per1234cmaglie
authored andcommitted
Replace boolean type with bool in examples
This is part of a move to encourage use of the standard bool type over Arduino's non-standard boolean type alias.
1 parent de0fa4f commit 07925f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: libraries/USBHost/examples/MouseController/MouseController.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ USBHost usb;
2222
MouseController mouse(usb);
2323

2424
// variables for mouse button states
25-
boolean leftButton = false;
26-
boolean middleButton = false;
27-
boolean rightButton = false;
25+
bool leftButton = false;
26+
bool middleButton = false;
27+
bool rightButton = false;
2828

2929
// This function intercepts mouse movements
3030
void mouseMoved() {

0 commit comments

Comments
 (0)