From 68a7d2b75421c02d43c2482a0dfb7ea5fa2a1b88 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Wed, 26 Sep 2012 13:43:04 +0200 Subject: [PATCH] compiler warning fix --- src/gdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gdisp.c b/src/gdisp.c index 156ffe48..b97260c1 100644 --- a/src/gdisp.c +++ b/src/gdisp.c @@ -505,7 +505,7 @@ * @notapi */ void _draw_arc(coord_t x, coord_t y, uint16_t start, uint16_t end, uint16_t radius, color_t color) { - if (start >= 0 && start <= 180) { + if(start > 0 && start <= 180) { float x_maxI = x + radius*cos(start*M_PI/180); float x_minI;