summaryrefslogtreecommitdiff
path: root/libraries/OBD2UART/examples
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/OBD2UART/examples')
-rw-r--r--libraries/OBD2UART/examples/orientation_demo/orientation_demo.ino9
1 files changed, 4 insertions, 5 deletions
diff --git a/libraries/OBD2UART/examples/orientation_demo/orientation_demo.ino b/libraries/OBD2UART/examples/orientation_demo/orientation_demo.ino
index 923c6ac..e04949c 100644
--- a/libraries/OBD2UART/examples/orientation_demo/orientation_demo.ino
+++ b/libraries/OBD2UART/examples/orientation_demo/orientation_demo.ino
@@ -22,7 +22,6 @@ HardwareSerial Serial1(1);
#endif
COBD obd;
-bool hasMEMS;
void setup()
{
@@ -44,11 +43,11 @@ void setup()
}
// initialize MEMS with sensor fusion enabled
- hasMEMS = obd.memsInit(true);
- mySerial.print("MEMS:");
- mySerial.println(hasMEMS ? "OK" : "NO");
+ bool hasMEMS = obd.memsInit(true);
+ mySerial.print("Motion sensor is ");
+ mySerial.println(hasMEMS ? "present" : "not present");
if (!hasMEMS) {
- for (;;);
+ for (;;) delay(1000);
}
}