From bace02e44f4f4bb88c7ad7a74722b153a2f118fc Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Wed, 24 May 2017 21:07:16 +1000 Subject: Working with latest OBD library --- megaloggerHD/megaloggerHD.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'megaloggerHD') diff --git a/megaloggerHD/megaloggerHD.ino b/megaloggerHD/megaloggerHD.ino index f5f7848..3fb732f 100644 --- a/megaloggerHD/megaloggerHD.ino +++ b/megaloggerHD/megaloggerHD.ino @@ -575,8 +575,9 @@ void reconnect() if (obd.init()) break; - obd.sleep(); + obd.enterLowPowerMode(); Narcoleptic.delay(10000); + obd.leaveLowPowerMode(); } // re-initialize state |= STATE_OBD_READY; @@ -617,7 +618,7 @@ void showStates() void testOut() { - const char cmds[][6] = {"ATZ\r", "ATH0\r", "ATRV\r", "0100\r", "0902\r"}; + const char cmds[][6] = {"ATZ\r", "ATH1\r", "ATRV\r", "0100\r", "0902\r"}; char buf[128]; lcd.setFontSize(FONT_SIZE_SMALL); lcd.setCursor(0, 13); -- cgit v1.2.3