X-Git-Url: http://git.droids-corp.org/?p=beacon-rx-433.git;a=blobdiff_plain;f=main.c;h=5dd4f1db7562c91e319c18b100646952561c7901;hp=042f91b2adc386ede12805c001966fb5d17716af;hb=13a330e24ad9e821c33f501c7f4c3788d56181a6;hpb=c8252ed593f74b11b2cf3cb1c8163c1b368e6aec diff --git a/main.c b/main.c index 042f91b..5dd4f1d 100644 --- a/main.c +++ b/main.c @@ -347,6 +347,11 @@ static void set_output(int16_t i) printf("%d pow_fond=%d pow_harm1=%d pow_other=%d cpt_filter=%d detected=%d\n", i, pow_fond, pow_harm1, pow_other, cpt_filter, detected); #else + if (detected) + PORTB |= (1 << LED_BIT); + else + PORTB &= ~(1 << LED_BIT); + /* when we receive, output a square signal at 625 hz */ if ((detected == 1) && (i & 4)) PORTB |= (1 << BUZ_BIT); @@ -398,8 +403,8 @@ int main(void) set_output(i); -#ifdef HOST_VERSION i ++; +#ifdef HOST_VERSION if (i >= sizeof(x)) break; #endif