summaryrefslogtreecommitdiffhomepage
path: root/digital
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-30 01:36:22 +0200
committerJérémy Dufour2008-04-30 01:36:22 +0200
commit8cd39564e31e07971b80fecc5e4a54edc398d3b0 (patch)
treedabb1ff2b4335b91a0cf21b0d1bc0a9f37a5f74c /digital
parent6f6a325826a850dec5a69e79f9d404ae200e3e48 (diff)
* digital/io/src
- correct a bug with bit_is_set in switch module.
Diffstat (limited to 'digital')
-rw-r--r--digital/io/src/switch.avr.c5
1 files changed, 4 insertions, 1 deletions
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. */