From 5a880d840aa8d4dd32ec3eade32b6405f378bd2b Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Fri, 3 Feb 2012 11:38:14 +0100 Subject: [PATCH] Fix whitespace errors introduced by voltage merge --- firmware/l0dable/voltage.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/firmware/l0dable/voltage.c b/firmware/l0dable/voltage.c index 8f83a95..e0dd9cc 100644 --- a/firmware/l0dable/voltage.c +++ b/firmware/l0dable/voltage.c @@ -15,7 +15,7 @@ // Added graphical battery. // hLine and vLine code from Juna, nougad and fu86 -// (camp 2011, CTHN Village) +// (camp 2011, CTHN Village) void hLine(int y, int x1, int x2, bool pixel); void vLine(int x, int y1, int y2, bool pixel); @@ -28,7 +28,7 @@ void ram(void) { do{ c = gpioGetValue(RB_PWR_CHRG); mv = GetVoltage(); - + // Print state and draw battery (only if state changed). if(!c && old_state != 0){ drawCommonThings(c); @@ -83,7 +83,7 @@ void drawCommonThings(int c) { lcdClear(); // Print header. lcdPrintln("Battery status:"); - + // Draw battery frame. hLine(23, 14, 72, true); hLine(43, 14, 72, true); @@ -93,7 +93,7 @@ void drawCommonThings(int c) { hLine(28, 72, 78, true); hLine(38, 72, 78, true); vLine(78, 28, 38, true); - + // Print if not charging. lcdSetCrsr(0, 60); if(c){ @@ -116,6 +116,6 @@ void vLine(int x, int y1, int y2, bool pixel) { void rectFill(int x, int y, int width, int heigth, bool pixel) { for (int i=y; i<=y+heigth; ++i) { - hLine(i, x, x+width, pixel); + hLine(i, x, x+width, pixel); } }