From 6cb3c04fa37588eddf1341d77d1d70cfd8a2fcb3 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Fri, 16 Aug 2013 00:57:43 +0800 Subject: compiled code can now fit into 32KB --- obdlogger/MultiLCD.h | 4 ++++ obdlogger/obdlogger.cbp | 8 +++++++- obdlogger/obdlogger.ino | 6 +++--- 3 files changed, 14 insertions(+), 4 deletions(-) (limited to 'obdlogger') diff --git a/obdlogger/MultiLCD.h b/obdlogger/MultiLCD.h index f7b703b..1206414 100644 --- a/obdlogger/MultiLCD.h +++ b/obdlogger/MultiLCD.h @@ -5,6 +5,10 @@ * All rights reserved. *************************************************************************/ +#if !defined(__AVR_ATmega2560__) && !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega644P__) +#define MEMORY_SAVING +#endif + typedef enum { FONT_SIZE_SMALL = 0, FONT_SIZE_MEDIUM, diff --git a/obdlogger/obdlogger.cbp b/obdlogger/obdlogger.cbp index f24add3..b2ca76b 100644 --- a/obdlogger/obdlogger.cbp +++ b/obdlogger/obdlogger.cbp @@ -33,11 +33,12 @@