fix capture of radio output
[beacon-rx-433.git] / main.c
diff --git a/main.c b/main.c
index 6797250..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
 }
 
@@ -369,13 +369,6 @@ int main(void)
        /* led and buzzer are outputs */
 #if defined(__AVR_ATtiny45__)
        DDRB |= (1 << LED_BIT) | (1 << BUZ_BIT);
-
-       while (1) {
-               PORTB |= (1 << LED_BIT);
-               wait_ms(500);
-               PORTB &= ~(1 << LED_BIT);
-               wait_ms(500);
-       }
 #endif
 
        i = 0;