From 49b6757e0018cea241ba1cb78d1f48fff991d7fb Mon Sep 17 00:00:00 2001 From: hackbard Date: Wed, 16 Feb 2011 16:33:28 +0100 Subject: [PATCH] fixed state machine --- monolyzer/main.asm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/monolyzer/main.asm b/monolyzer/main.asm index e17e9a7..d1cdf77 100644 --- a/monolyzer/main.asm +++ b/monolyzer/main.asm @@ -125,9 +125,9 @@ MAIN: SAMPLE: - ; sample as long as there is storage capacity - sbrs state,0 - rjmp SAMPLE + ; sample as long as there is storage capacity and signal + cpi state,2 + brne SAMPLE ; disable interrupts rcall INT0_IR_DISABLE @@ -224,7 +224,7 @@ INT0_RUN: brne EXIT_IR ; exit sampling - ldi state,0 + ldi state,2 EXIT_IR: @@ -236,7 +236,7 @@ EXIT_IR: T1_OVF_IR: ; exit sampling - ldi state,0 + ldi state,2 reti -- 2.20.1