Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 2:697cd0c40fbf, committed 2013-11-22
- Comitter:
- embeddedartists
- Date:
- Fri Nov 22 09:06:59 2013 +0000
- Parent:
- 1:5d12e995c311
- Commit message:
- Small fixes
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Nov 22 09:01:33 2013 +0000
+++ b/main.cpp Fri Nov 22 09:06:59 2013 +0000
@@ -39,21 +39,21 @@
if (state2 == 0) {
// Both pressed so turn off LED/buzzer
led = 1;
- buzzer = 0;
+ buzzer = 1;
} else {
// Only one pressed so turn on LED/buzzer
led = 0;
- buzzer = 1;
+ buzzer = 0;
}
} else {
if (state2 == 0) {
// Only one pressed so turn on LED/buzzer
led = 0;
- buzzer = 1;
+ buzzer = 0;
} else {
// Both pressed so turn off LED/buzzer
led = 1;
- buzzer = 0;
+ buzzer = 1;
}
}
}