From 8cd39564e31e07971b80fecc5e4a54edc398d3b0 Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Wed, 30 Apr 2008 01:36:22 +0200 Subject: * digital/io/src - correct a bug with bit_is_set in switch module. --- digital/io/src/switch.avr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'digital/io/src') diff --git a/digital/io/src/switch.avr.c b/digital/io/src/switch.avr.c index 44e8f36e..47293565 100644 --- a/digital/io/src/switch.avr.c +++ b/digital/io/src/switch.avr.c @@ -124,7 +124,10 @@ switch_update (void) enum team_color_e switch_get_color (void) { - return bit_is_set (SWITCH_COLOR_PIN, SWITCH_COLOR_PIN_NUMBER); + if (bit_is_set (SWITCH_COLOR_PIN, SWITCH_COLOR_PIN_NUMBER)) + return 1; + else + return 0; } /* Get the current state of the jack switch. */ -- cgit v1.2.3