lcd_locate is useless, if not initialized

This commit is contained in:
Stefan Rupp 2014-03-19 03:51:25 +01:00
parent cc2ebfe37b
commit 50fd1f1004

4
lcd.c
View File

@ -245,6 +245,10 @@ void lcd_clear(void)
void lcd_locate(uint8_t row, uint8_t col) void lcd_locate(uint8_t row, uint8_t col)
{ {
if (!lcd_initialized) {
return;
}
if (row) if (row)
col += 0x40; col += 0x40;
lcd_send_byte(0x80 + col, 0); lcd_send_byte(0x80 + col, 0);