From 0f269a6d333ba7efc338902b32a581bb8f7fcb3a Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Thu, 22 Oct 2015 01:07:38 -0400 Subject: [PATCH] Don't initialize global variables to zero The C89 standard dictates that global variables be initialized to zero by default. By explicitly defining a global to be zero, previous flash memory is wasted. See: http://www.nongnu.org/avr-libc/user-manual/FAQ.html#faq_varinit Signed-off-by: Collin J. Doering --- lcdLib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lcdLib.c b/lcdLib.c index 8b9e512..ee84e65 100644 --- a/lcdLib.c +++ b/lcdLib.c @@ -27,8 +27,8 @@ #include "lcdLib.h" // Globals -volatile uint8_t currentLineNum = 0; -volatile uint8_t currentLineChars = 0; +volatile uint8_t currentLineNum; +volatile uint8_t currentLineChars; const uint8_t lineBeginnings[LCD_NUMBER_OF_LINES] = { LCD_LINE_BEGINNINGS };