diff --git a/lib/hd44780_111/hd44780.c b/lib/hd44780_111/hd44780.c index d0db4bd..d00deae 100755 --- a/lib/hd44780_111/hd44780.c +++ b/lib/hd44780_111/hd44780.c @@ -7,6 +7,8 @@ Version: 1.11 #include #include #include +#define __ASSERT_USE_STDERR +#include #include "hd44780.h" #include "hd44780_settings.h" @@ -495,6 +497,8 @@ Returns: none *************************************************************************/ void lcd_goto(uint8_t pos) { + //Do not go outside of screen limits + assert(pos < LCD_COLS_MAX); lcd_command((1<