From 57aa8754858a40a98348071e233f578c7a64d430 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 22 Apr 2008 21:57:49 +0200 Subject: * digital/io/src: - fixed bad macros. --- digital/io/src/playground.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'digital') diff --git a/digital/io/src/playground.h b/digital/io/src/playground.h index 95f7aad3..779b22c8 100644 --- a/digital/io/src/playground.h +++ b/digital/io/src/playground.h @@ -51,14 +51,14 @@ * value for on the X axis depending on the color. */ #define PG_X_VALUE_COMPUTING(x) \ - (bot_color ? x : PG_WIDTH - x) + (bot_color ? (x) : PG_WIDTH - (x)) /** * Considering there is a symmetry axis on X, this macro will compute the * value of the angle depending on the color. */ #define PG_A_VALUE_COMPUTING(a) \ - (bot_color ? a : (a + BOT_ANGLE_DEGREE * 180)) + (bot_color ? (a) : ((a) + BOT_ANGLE_DEGREE * 180)) /** * The position where to reset the bot when it starts, depending on the color. -- cgit v1.2.3