1
0
mirror of https://github.com/sjlongland/atinysynth.git synced 2025-09-13 10:03:15 +10:00

attiny861 port: Clear button hit/release events at power-on.

This prevents all the notes being played all at once on power-on.
This commit is contained in:
Stuart Longland 2017-05-28 11:01:32 +10:00
parent e75d75d20b
commit cf587e3fd8
Signed by: stuartl
GPG Key ID: F954BBBB7948D546

View File

@ -198,7 +198,14 @@ int main(void) {
synth.enable = 0x0;
synth.mute = 0x0;
/* Turn on interrupts */
sei();
/* Reset button states */
button_hit = 0;
button_release = 0;
/* Enter main loop */
while(1) {
/* Check the button states */
uint8_t b = 0;