fix beep when beacon is detected
authorOlivier Matz <zer0@droids-corp.org>
Thu, 23 May 2013 17:44:59 +0000 (19:44 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Thu, 23 May 2013 17:44:59 +0000 (19:44 +0200)
the variable i was not incremented, therefore the code did not generate
the square signal for the buzzer

Signed-off-by: Olivier Matz <zer0@droids-corp.org>
main.c

diff --git a/main.c b/main.c
index 042f91b..d60f4a8 100644 (file)
--- 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