]> git.droids-corp.org - beacon-rx-433.git/commitdiff
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 042f91b2adc386ede12805c001966fb5d17716af..d60f4a8b59139b3ec3a2fa464d8ae7907185cb4f 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