From 595cfc36afbe4192bf24b0a2f5c2f95e87e12295 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Mon, 24 Apr 2023 16:27:50 +0200 Subject: Fix potential recursive loop on interrupt --- src/main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 0ab251d..3a1c1d7 100644 --- a/src/main.c +++ b/src/main.c @@ -28,7 +28,7 @@ WITH REGARD TO THIS SOFTWARE. // + Allow pasting parameters if they have been copied. // - Draw the global params in grey if they haven't been adjusted or aren't // currently selected. -// - Draw missing cursor. +// + Draw missing cursor. // + Per-octave note adjustment with Select + L/R on a trig. // + Transpose channel with SEL + L/R on channel select. // - Pattern chaining for more than 1 queue and/or song mode. @@ -47,7 +47,7 @@ WITH REGARD TO THIS SOFTWARE. #include "renderer_m0.c" #include "sequencer.c" -#define PROF_ENABLE 1 +#define PROF_ENABLE 0 #include "profiling.c" void @@ -107,6 +107,10 @@ update(void) { last_channel_loc = channel_selection_loc; last_pattern_loc = pattern_selection_loc; last_right_col_loc = right_col_selection_loc; + if (update_bpm) { + set_time(patterns[current_pattern].bpm); + update_bpm = false; + } } int -- cgit v1.2.1