Skip to content

Commit ffc528f

Browse files
author
Jenny Plunkett
authored
Make BUTTON_PRESS capitalized
1 parent 5eff15e commit ffc528f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow-Control/Busy-Wait-Button/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
DigitalIn button(SW1); // Change to match your board
44
DigitalOut led(LED1);
55

6-
#define button_press 0
6+
#define BUTTON_PRESS 0
77

88
int main() {
99
while(1) {
10-
if(button_press == button){
10+
if(BUTTON_PRESS == button){
1111
led = !led;
1212
wait(1);
1313
}

0 commit comments

Comments
 (0)