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.
Dependencies: C12832 MMA7660 mbed
Diff: main.cpp
- Revision:
- 12:1d5832974d41
- Parent:
- 11:28887549c7d5
--- a/main.cpp Wed Mar 28 13:43:08 2018 +0000
+++ b/main.cpp Wed Mar 28 13:51:41 2018 +0000
@@ -15,14 +15,14 @@
lcd.locate(0,3);
lcd.printf("mbed Switches application");
- for(int index = 0; commandList[index].trigger != 0x00; index++) {
+ for(int index = 0; commandList[index].trigger != nothing; index++) {
commandList[index].command->initialize();
}
COMMAND_TRRIGER *current = &trrigerNull;
while(true) {
COMMAND_TRRIGER *request = NULL;
- for(int index = 0; commandList[index].trigger != 0x00; index++) {
+ for(int index = 0; commandList[index].trigger != nothing; index++) {
if (joyStick == commandList[index].trigger) {
request = &commandList[index];
}
@@ -31,7 +31,7 @@
current->command->finalize();
current = &trrigerNull;
}
- if (current->trigger == 0x00) {
+ if (current->trigger == nothing) {
if (request != NULL){
current = request;
lcd.locate(0,15);