From 4297a98fdd13d88a5cc7748440b7a37520301a6d Mon Sep 17 00:00:00 2001 From: PavelSindler Date: Sun, 26 Nov 2017 19:10:38 +0100 Subject: [PATCH] debuging messages --- Firmware/ultralcd_implementation_hitachi_HD44780.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Firmware/ultralcd_implementation_hitachi_HD44780.h b/Firmware/ultralcd_implementation_hitachi_HD44780.h index 710de49f..c5b3b7f2 100644 --- a/Firmware/ultralcd_implementation_hitachi_HD44780.h +++ b/Firmware/ultralcd_implementation_hitachi_HD44780.h @@ -1205,14 +1205,18 @@ static void lcd_implementation_drawmenu_sdfile_selected(uint8_t row, const char* lcd.setCursor(0, row); lcd.print('>'); - + int counter = 0; int i = 1; int j = 0; char* longFilenameTMP = longFilename; + MYSERIAL.println(""); + MYSERIAL.println(""); + MYSERIAL.println("================================Start: "); while((c = *longFilenameTMP) != '\0') { - + MYSERIAL.print("Counter: "); + MYSERIAL.println(counter++); lcd.setCursor(i, row); lcd.print(c); i++; @@ -1223,11 +1227,15 @@ static void lcd_implementation_drawmenu_sdfile_selected(uint8_t row, const char* longFilenameTMP = longFilename + j; n = LCD_WIDTH - 1; for(int g = 0; g<300 ;g++){ + MYSERIAL.print("G: "); + MYSERIAL.println(g); + if (!SdFatUtil::test_stack_integrity()) stack_error(); if(LCD_CLICKED || ( enc_dif != encoderDiff )){ longFilenameTMP = longFilename; *(longFilenameTMP + LCD_WIDTH - 2) = '\0'; i = 1; j = 0; + MYSERIAL.println("Here"); break; }else{ if (j == 1) delay(3); //wait around 1.2 s to start scrolling text