From: user Date: Fri, 7 Jul 2023 20:56:12 +0000 (-0500) Subject: Detect butten press by level rather than change X-Git-Url: https://git.the-white-hart.net/?a=commitdiff_plain;h=c4f0d59443708a1b3416d2389eac4dc26a62d7cb;p=atmega%2Fsiggen.git Detect butten press by level rather than change This fixes a problem that would cause it to immediately advance waveforms on startup specifically after being programmed. --- diff --git a/siggen.asm b/siggen.asm index 5661faa..580949b 100644 --- a/siggen.asm +++ b/siggen.asm @@ -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