]> git.the-white-hart.net Git - atmega/siggen.git/commitdiff
Detect butten press by level rather than change
authoruser <none>
Fri, 7 Jul 2023 20:56:12 +0000 (15:56 -0500)
committeruser <none>
Fri, 7 Jul 2023 20:56:12 +0000 (15:56 -0500)
This fixes a problem that would cause it to immediately advance
waveforms on startup specifically after being programmed.

siggen.asm

index 5661faacdf759109d54300b15bdd8afcc899bb5b..580949b708f6885873c5df51a5b5541946d79d80 100644 (file)
@@ -320,8 +320,8 @@ _adc_wait:
        ; --------------------------------------------------------------
        ; ----- Poll for button presses and swap waveforms
 
-       ; Test for pin change interrupt flag
-       sbis    PCIFR, PCIF1
+       ; Test for pushbutton pin pulled low
+       sbic    PINC, PINC5
        rjmp    _button_done
        ; Button pin status has changed