From: Olivier Matz Date: Thu, 23 May 2013 17:43:07 +0000 (+0200) Subject: fix capture of radio output X-Git-Url: http://git.droids-corp.org/?p=beacon-rx-433.git;a=commitdiff_plain;h=c8252ed593f74b11b2cf3cb1c8163c1b368e6aec fix capture of radio output Signed-off-by: Olivier Matz --- diff --git a/main.c b/main.c index 1a9b01e..042f91b 100644 --- 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 }