From cc29f957a1fdbd21871d0a0183ddd2246827bc00 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Sun, 6 Jul 2014 21:33:10 +1000 Subject: Add low-power sleep --- megalogger/megalogger.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'megalogger/megalogger.ino') diff --git a/megalogger/megalogger.ino b/megalogger/megalogger.ino index 4a04cb9..b547efa 100644 --- a/megalogger/megalogger.ino +++ b/megalogger/megalogger.ino @@ -11,11 +11,12 @@ #include #endif #include +#include #include #include #include #include -#include +#include #include "config.h" #include "images.h" #if ENABLE_DATA_OUT && USE_SOFTSERIAL @@ -445,6 +446,8 @@ private: int value; if (read(PID_RPM, value) && value > 0) break; + + Narcoleptic.delay(2000); } lcd.backlight(true); state |= STATE_OBD_READY; -- cgit v1.2.3