From d8833c63c5a5daf57288f1bc080c6eb47e5e1e9c Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Thu, 23 May 2013 19:44:59 +0200 Subject: [PATCH] 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 --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1