From: Olivier Matz Date: Thu, 23 May 2013 17:44:59 +0000 (+0200) Subject: fix beep when beacon is detected X-Git-Url: http://git.droids-corp.org/?p=beacon-rx-433.git;a=commitdiff_plain;h=d8833c63c5a5daf57288f1bc080c6eb47e5e1e9c;ds=sidebyside fix beep when beacon is detected the variable i was not incremented, therefore the code did not generate the square signal for the buzzer Signed-off-by: Olivier Matz --- diff --git a/main.c b/main.c index 042f91b..d60f4a8 100644 --- a/main.c +++ b/main.c @@ -398,8 +398,8 @@ int main(void) set_output(i); -#ifdef HOST_VERSION i ++; +#ifdef HOST_VERSION if (i >= sizeof(x)) break; #endif