altos/lpc: Missing parens around ao_gpio_set macro
authorKeith Packard <keithp@keithp.com>
Mon, 20 May 2013 03:18:44 +0000 (20:18 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 20 May 2013 03:39:19 +0000 (20:39 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/lpc/ao_arch_funcs.h

index 3cd873ec89c3017a4364fbd063935e4d094be012..204d1227dd5f525d02579efd85dac30db4a55096 100644 (file)
@@ -25,7 +25,7 @@
 
 #define lpc_all_bit(port,bit)  (((port) << 5) | (bit))
 
-#define ao_gpio_set(port, bit, pin, v) (lpc_gpio.byte[lpc_all_bit(port,bit)] = v)
+#define ao_gpio_set(port, bit, pin, v) (lpc_gpio.byte[lpc_all_bit(port,bit)] = (v))
 
 #define ao_gpio_get(port, bit, pin)    (lpc_gpio_byte[lpc_all_bit(port,bit)])