From d63a0d1a9f15df7cd8e6dd32badd5617aa758b6d Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Fri, 4 Apr 2014 10:11:49 +0800 Subject: Update Nano Logger --- nanologger/nanologger.ino | 12 ++++++++++-- nanologger/nanologger.layout | 39 --------------------------------------- 2 files changed, 10 insertions(+), 41 deletions(-) delete mode 100644 nanologger/nanologger.layout (limited to 'nanologger') diff --git a/nanologger/nanologger.ino b/nanologger/nanologger.ino index 83d439e..b866341 100644 --- a/nanologger/nanologger.ino +++ b/nanologger/nanologger.ino @@ -255,8 +255,16 @@ private: state &= ~(STATE_OBD_READY | STATE_ACC_READY); state |= STATE_SLEEPING; //digitalWrite(SD_CS_PIN, LOW); - for (int i = 0; !init(); i++) { - if (i == 10) lcd.clear(); + for (uint16_t i = 0; ; i++) { + if (i == 5) { + lcd.backlight(false); + lcd.clear(); + } + if (init()) { + int value; + if (read(PID_RPM, value) && value > 0) + break; + } } state &= ~STATE_SLEEPING; fileIndex++; diff --git a/nanologger/nanologger.layout b/nanologger/nanologger.layout deleted file mode 100644 index af8be4e..0000000 --- a/nanologger/nanologger.layout +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3