diff --git a/lcdLib.c b/lcdLib.c index 6e376b9..8b9e512 100644 --- a/lcdLib.c +++ b/lcdLib.c @@ -316,7 +316,6 @@ void writeStringToLCD(char* str) { break; ;; case 'B': // CUD - Cursor down - PORTC ^= (1 << PC5); num0 = fnd0 ? num0 : 1; moveCursorDown(num0); break; diff --git a/lcdOutput.c b/lcdOutput.c index f6511a2..9aad904 100644 --- a/lcdOutput.c +++ b/lcdOutput.c @@ -50,27 +50,14 @@ void flashLED(uint8_t times) { times--; } } -//-------------------------------------------------- -/* - Initialize previous, current, and next screen variables to spaces -*/ -char* initScreenMem(const uint8_t len) { - char *scrn = (char*) malloc(len * sizeof(char)); - for (uint8_t i = 0; i < len; i++) { - scrn[i] = ' '; - } - return scrn; -} +//-------------------------------------------------- int main(void) { clock_prescale_set(clock_div_1); STATUS_LED_DDR |= 1 << STATUS_LED; // DEBUG - // Allocate and init first block of heap for storing LCD data - char* scrn = initScreenMem(LCD_CHARACTERS_PER_SCREEN); - initUSART(); char serialChar; @@ -78,8 +65,6 @@ int main(void) { //initLCDByInternalReset(); flashLED(5); // DEBUG - writeStringToLCD(CUB(1)); - while (1) { serialChar = receiveByte();