diff --git a/firmware/main.c b/firmware/main.c index 755ff58..8b48ed5 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -292,6 +292,7 @@ void do_mode4(void) { ; void do_mode5(void) { + static bool sample; static timer_t mytimer; uint16_t led1; uint16_t led2; @@ -299,50 +300,46 @@ void do_mode5(void) { if (ModeChanged) { //init after mode change ModeChanged = false; + ADMUX = (1<