Dozingfiretruck 2 лет назад
Родитель
Сommit
3e671cb6fe
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      components/lcd/luat_lcd.c

+ 1 - 1
components/lcd/luat_lcd.c

@@ -260,7 +260,7 @@ int luat_lcd_clear(luat_lcd_conf_t* conf, luat_color_t color){
 
 int luat_lcd_draw_fill(luat_lcd_conf_t* conf,uint16_t x1,uint16_t y1,uint16_t x2,uint16_t y2, luat_color_t color) {          
 	uint16_t i;
-	for(i=y1;i<y2;i++)
+	for(i=y1;i<=y2;i++)
 	{
 		luat_lcd_draw_line(conf, x1, i, x2, i, color);
 	}