Skip to content

Commit 70c8f28

Browse files
authored
Update MultipleButtonsAndHats.ino - formatting
1 parent 16b7752 commit 70c8f28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/MultipleButtonsAndHats/MultipleButtonsAndHats.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void loop()
122122
bleGamepad.setHats(hatValues[0], hatValues[1], hatValues[2], hatValues[3]);
123123

124124
// Update previous states to current states if required and send report
125-
if ((memcmp((const void *)currentButtonStates, (const void *)previousButtonStates, sizeof(currentButtonStates)) != 0) && (memcmp((const void *)currentHatStates, (const void *)previousHatStates, sizeof(currentHatStates)) != 0))
125+
if ((memcmp((const void *)currentButtonStates, (const void *)previousButtonStates, sizeof(currentButtonStates)) != 0) && (memcmp((const void *)currentHatStates, (const void *)previousHatStates, sizeof(currentHatStates)) != 0))
126126
{
127127
for (byte currentIndex = 0; currentIndex < numOfButtons; currentIndex++)
128128
{
@@ -139,4 +139,4 @@ void loop()
139139

140140
delay(20);
141141
}
142-
}
142+
}

0 commit comments

Comments
 (0)