summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/wps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/wps.c b/apps/wps.c
index 8a3966f188..0467977bc2 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -180,7 +180,7 @@ int wps_show(void)
180#ifdef HAVE_LCD_BITMAP 180#ifdef HAVE_LCD_BITMAP
181 /* draw battery indicator line */ 181 /* draw battery indicator line */
182 lcd_clearline(0,LCD_HEIGHT-1,LCD_WIDTH-1, LCD_HEIGHT-1); 182 lcd_clearline(0,LCD_HEIGHT-1,LCD_WIDTH-1, LCD_HEIGHT-1);
183 lcd_drawline(0,LCD_HEIGHT-1,battery_level() * LCD_WIDTH / 100, LCD_HEIGHT-1); 183 lcd_drawline(0,LCD_HEIGHT-1,battery_level() * (LCD_WIDTH-1) / 100, LCD_HEIGHT-1);
184#endif 184#endif
185 185
186 for ( i=0;i<5;i++ ) { 186 for ( i=0;i<5;i++ ) {