fix capture of radio output
authorOlivier Matz <zer0@droids-corp.org>
Thu, 23 May 2013 17:43:07 +0000 (19:43 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Thu, 23 May 2013 17:43:07 +0000 (19:43 +0200)
Signed-off-by: Olivier Matz <zer0@droids-corp.org>
main.c

diff --git a/main.c b/main.c
index 1a9b01e..042f91b 100644 (file)
--- a/main.c
+++ b/main.c
@@ -330,7 +330,7 @@ static uint8_t get_input(int i)
 #ifdef HOST_VERSION
        return !!x[i];
 #else
-       return !!(PINB & RADIO_BIT);
+       return !!(PINB & (1 << RADIO_BIT));
 #endif
 }