diff --git a/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c b/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c index 24fc4eae57..e5f6453f43 100644 --- a/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c +++ b/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c @@ -564,7 +564,7 @@ void lcd_update_rect(int x, int y, int width, int height) lcd_write_data(ptr, width); ptr += LCD_WIDTH; } - while (--height > 0); + while (--height >= 0); lcd_busy = false; } /* lcd_update_rect */ diff --git a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c index c22382f19c..3fe3037adc 100644 --- a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c +++ b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c @@ -411,7 +411,7 @@ void lcd_update_rect(int x, int y, int width, int height) lcd_write_data(ptr, width); ptr += LCD_WIDTH; } - while (--height > 0); + while (--height >= 0); lcd_busy = false; }