From 25d95246ea97492ac0979d27e807ff3e8e3a9775 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Wed, 31 Jan 2018 11:52:45 +1100 Subject: Update --- .../OBD2UART/examples/orientation_demo/orientation_demo.ino | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libraries/OBD2UART') 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); } } -- cgit v1.2.3