minor changes and first not-well working version of autotemp

This commit is contained in:
Bernhard Kubicek
2011-11-09 22:09:16 +01:00
parent ba8a53a40f
commit 36958ee305
7 changed files with 56 additions and 6 deletions

View File

@ -71,10 +71,12 @@ void lcd_statuspgm(const char* message)
{
char ch=pgm_read_byte(message);
char *target=messagetext;
while(ch)
uint8_t cnt=0;
while(ch &&cnt<LCD_WIDTH)
{
*target=ch;
target++;
cnt++;
ch=pgm_read_byte(++message);
}
}