diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2017-05-24 21:07:16 +1000 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2017-05-24 21:07:16 +1000 |
commit | bace02e44f4f4bb88c7ad7a74722b153a2f118fc (patch) | |
tree | 4c13a7095b0ac7c3af833e8f9918f04c53f3ba79 /megaloggerHD | |
parent | f44d57d878eaf9088dad912fcd0fa2863bf8f416 (diff) | |
download | 2021-arduino-obd-bace02e44f4f4bb88c7ad7a74722b153a2f118fc.tar.gz 2021-arduino-obd-bace02e44f4f4bb88c7ad7a74722b153a2f118fc.tar.bz2 2021-arduino-obd-bace02e44f4f4bb88c7ad7a74722b153a2f118fc.zip |
Working with latest OBD library
Diffstat (limited to 'megaloggerHD')
-rw-r--r-- | megaloggerHD/megaloggerHD.ino | 5 |
1 files changed, 3 insertions, 2 deletions
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); |